alibaba / alibaba/open-code-review
unrecognizedProperty cache_control
- Dominant language
- Go
- Stars
- 24.4k
- Forks
- 1.8k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 105
Description
### OpenCodeReview Version
v1.8.5 (582953937) linux/amd64
### Operating System
Linux (x86_64)
### Installation Method
npm (global)
### LLM Provider
Anthropic (Claude)
### Bug Description
```
[ocr] Subtask error for pom.xml: LLM completion error: POST "": 400 Bad Request {"errorCode":"INVALID_ARGUMENT","errorName":"LanguageModelService:InvalidRequest","errorInstanceId":"b5d73937-d0f4-4dbc-b5ce-1eb5bb3bd40c","parameters":{"unsafeParams":"{unrecognizedProperty=cache_control}","message":"Request contained an unrecognized field"}}
```
Is it possible to remove this cache_control via configuration?
BTW: `ocr llm test` was successful
```
Source: OCR environment
URL:
Model:
I am Open-Code-Review, a command-line code review assistant developed by Alibaba, designed to help analyze and review code directly in your terminal environment.
✓ Connection test successful
```
### Steps to Reproduce
-
### Expected Behavior
-
### Logs / Error Output
```shell
```
### Additional Context
_No response_
Contributor guide
Research direction
Start by tracing the LLM completion request handling for the Anthropic provider and the configuration used by `ocr llm test`; no source files or tests are named in the report. Reproduce the failing review request for `pom.xml`, then determine whether `cache_control` is added to the request and verify that the resulting request is accepted without breaking the successful connection test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 45/100