From 17e6e7a4cc5e5504c973ea12101f0d8a8970fbc0 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Tue, 24 Mar 2026 09:33:28 +0530 Subject: [PATCH 1/3] 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) --- .../docs/tutorials/opencode_integration.md | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/my-website/docs/tutorials/opencode_integration.md b/docs/my-website/docs/tutorials/opencode_integration.md index e55367833f..d8948f34e7 100644 --- a/docs/my-website/docs/tutorials/opencode_integration.md +++ b/docs/my-website/docs/tutorials/opencode_integration.md @@ -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` From 4e6e566b4d5a83aff02f4d6be7d7afec36470954 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Tue, 24 Mar 2026 09:42:59 +0530 Subject: [PATCH 2/3] docs(opencode): fix model prefix and clarify drop_params scope - Use openai/gpt-5 prefix to match existing doc conventions - Clarify that additional_drop_params must be added to every affected model entry, not just one Co-Authored-By: Claude Sonnet 4.6 (1M context) --- docs/my-website/docs/tutorials/opencode_integration.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/my-website/docs/tutorials/opencode_integration.md b/docs/my-website/docs/tutorials/opencode_integration.md index d8948f34e7..0727075b4a 100644 --- a/docs/my-website/docs/tutorials/opencode_integration.md +++ b/docs/my-website/docs/tutorials/opencode_integration.md @@ -274,13 +274,13 @@ model_list: ### 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: +OpenCode sends a `reasoningSummary` parameter (a Responses API concept) 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: ```yaml model_list: - model_name: gpt-5 litellm_params: - model: gpt-5 + model: openai/gpt-5 api_key: os.environ/OPENAI_API_KEY additional_drop_params: ["reasoningSummary"] ``` @@ -308,11 +308,11 @@ model_list: - 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: +- 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`: ```yaml - model_name: gpt-5 litellm_params: - model: gpt-5 + model: openai/gpt-5 api_key: os.environ/OPENAI_API_KEY additional_drop_params: ["reasoningSummary"] ``` From 80af635eb1764a20a16314cbe15e4f77b0500def Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Tue, 24 Mar 2026 09:44:04 +0530 Subject: [PATCH 3/3] Fix docs --- docs/my-website/docs/tutorials/opencode_integration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/my-website/docs/tutorials/opencode_integration.md b/docs/my-website/docs/tutorials/opencode_integration.md index 0727075b4a..35e00a1de5 100644 --- a/docs/my-website/docs/tutorials/opencode_integration.md +++ b/docs/my-website/docs/tutorials/opencode_integration.md @@ -274,7 +274,7 @@ model_list: ### Dropping OpenCode-specific parameters -OpenCode sends a `reasoningSummary` parameter (a Responses API concept) 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 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: ```yaml model_list: