mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-18 04:28:19 +00:00
docs(opencode): add guidance for dropping reasoningSummary param
OpenCode sends a `reasoningSummary` Responses API param with chat completion requests. Document how to use `additional_drop_params` to drop it and avoid 400 errors from the OpenAI API. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
3292d02aa4
commit
17e6e7a4cc
@@ -253,7 +253,7 @@ model_list:
|
||||
litellm_params:
|
||||
model: openai/gpt-4
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
|
||||
|
||||
- model_name: gpt-4o
|
||||
litellm_params:
|
||||
model: openai/gpt-4o
|
||||
@@ -264,7 +264,7 @@ model_list:
|
||||
litellm_params:
|
||||
model: anthropic/claude-3-5-sonnet-20241022
|
||||
api_key: os.environ/ANTHROPIC_API_KEY
|
||||
|
||||
|
||||
# DeepSeek models
|
||||
- model_name: deepseek-chat
|
||||
litellm_params:
|
||||
@@ -272,6 +272,19 @@ model_list:
|
||||
api_key: os.environ/DEEPSEEK_API_KEY
|
||||
```
|
||||
|
||||
### Dropping OpenCode-specific parameters
|
||||
|
||||
OpenCode sends a `reasoningSummary` parameter (a Responses API concept) with certain models. This parameter is not supported by the Chat Completions API and will cause errors. Use `additional_drop_params` in your `litellm_params` to drop it:
|
||||
|
||||
```yaml
|
||||
model_list:
|
||||
- model_name: gpt-5
|
||||
litellm_params:
|
||||
model: gpt-5
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
additional_drop_params: ["reasoningSummary"]
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
**OpenCode not connecting:**
|
||||
@@ -294,6 +307,16 @@ model_list:
|
||||
- Validate JSON syntax using a JSON validator
|
||||
- Ensure the `$schema` URL is accessible
|
||||
|
||||
**`Unknown parameter: 'reasoningSummary'` error:**
|
||||
- OpenCode sends a `reasoningSummary` parameter that is not supported by the Chat Completions API. Add `additional_drop_params: ["reasoningSummary"]` to your model's `litellm_params` to drop it automatically:
|
||||
```yaml
|
||||
- model_name: gpt-5
|
||||
litellm_params:
|
||||
model: gpt-5
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
additional_drop_params: ["reasoningSummary"]
|
||||
```
|
||||
|
||||
## Tips
|
||||
|
||||
- Add more models to the config as needed - they'll appear in `/models`
|
||||
|
||||
Reference in New Issue
Block a user