Skip to content

code review如何通过本地模型review #234

Description

@semi-xi

Issue Type

Incorrect information

Document Location

https://github.com/alibaba/open-code-review/blob/main/README.zh-CN.md

Description

模型列表如下

 ollama list
NAME                  ID              SIZE      MODIFIED          
qwen2.5-coder:14b     9ec8897f747e    9.0 GB    About an hour ago    
ds14b-large:latest    bde73b1178d2    9.0 GB    2 hours ago          
deepseek-r1:32b       edba8017331d    19 GB     3 hours ago          
deepseek-r1:14b       c333b7232bdb    9.0 GB    16 hours ago   

配置是通过这样配置的,最后测试连通,也通过了

 ocr config provider

Provider set to: my-llm (custom)
Model: qwen2.5-coder:14b

Testing connection...
Source: provider:my-llm
URL:    http://127.0.0.1:11434/v1
Model:  qwen2.5-coder:14b
I am an AI-powered code review

现在需要review的是前端项目
执行

ocr review \
  --from master \
  --to feature/xxxxx \
  --concurrency 2 \
  --timeout 1

无论是用qwen2.5-coder还是用deepseek-r1:32b或者deepseek-r1:14b执行都会出现以下异常(无论是.json还是.tsx)

[ocr] No tool calls parsed for .eslintrc.json, retrying...
[ocr] No tool calls parsed for .eslintrc.json, retrying...
[ocr] No tool calls parsed for .eslintrc.json, retrying...
[ocr] No tool calls parsed for .eslintrc.json, retrying...

是模型有什么问题?还是需要指定模型吗?

Suggested Change

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions