You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/my-website/docs/tutorials/opencode_integration.md
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,7 @@ model_list:
253
253
litellm_params:
254
254
model: openai/gpt-4
255
255
api_key: os.environ/OPENAI_API_KEY
256
-
256
+
257
257
- model_name: gpt-4o
258
258
litellm_params:
259
259
model: openai/gpt-4o
@@ -264,14 +264,27 @@ model_list:
264
264
litellm_params:
265
265
model: anthropic/claude-3-5-sonnet-20241022
266
266
api_key: os.environ/ANTHROPIC_API_KEY
267
-
267
+
268
268
# DeepSeek models
269
269
- model_name: deepseek-chat
270
270
litellm_params:
271
271
model: deepseek/deepseek-chat
272
272
api_key: os.environ/DEEPSEEK_API_KEY
273
273
```
274
274
275
+
### Dropping OpenCode-specific parameters
276
+
277
+
OpenCode sends a `reasoningSummary` parameter with reasoning-capable models such as `gpt-5`. This parameter is not supported by the Chat Completions API and will cause errors. Add `additional_drop_params` to every model entry in your `model_list` that will receive requests from OpenCode with reasoning enabled:
- OpenCode sends a `reasoningSummary` parameter that is not supported by the Chat Completions API. Add `additional_drop_params: ["reasoningSummary"]` to each affected model entry in your `litellm_params`:
312
+
```yaml
313
+
- model_name: gpt-5
314
+
litellm_params:
315
+
model: openai/gpt-5
316
+
api_key: os.environ/OPENAI_API_KEY
317
+
additional_drop_params: ["reasoningSummary"]
318
+
```
319
+
297
320
## Tips
298
321
299
322
- Add more models to the config as needed - they'll appear in `/models`
0 commit comments