mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-19 01:50:51 -05:00
fix(craft): remove hardcoded reasoningEffort high from opencode config (#13560)
This commit is contained in:
1 parent
0f60feb606
commit
3063ae7020
3 files changed
+1
-4
No files matched your search
@@ -173,8 +173,6 @@ def _build_provider_block(
|
||||
}
|
||||
if capabilities.supports_interleaved_reasoning:
|
||||
entry["interleaved"] = True
|
||||
if capabilities.supports_reasoning:
|
||||
entry["options"] = {"reasoningEffort": "high"}
|
||||
if model.max_input_tokens is not None and model.max_output_tokens is not None:
|
||||
# OpenCode 1.15.x subtracts output from context when input is absent.
|
||||
# LiteLLM reports input and output budgets independently, so include
|
||||
|
||||
@@ -95,7 +95,6 @@ def test_gateway_is_the_only_enabled_provider() -> None:
|
||||
"input": ["text", "image"],
|
||||
"output": ["text"],
|
||||
},
|
||||
"options": {"reasoningEffort": "high"},
|
||||
"limit": {
|
||||
"context": 200_000,
|
||||
"input": 200_000,
|
||||
|
||||
@@ -168,7 +168,7 @@ def test_gateway_model_capabilities_reach_opencode_catalog() -> None:
|
||||
}
|
||||
assert vision_model["attachment"] is True
|
||||
assert vision_model["reasoning"] is True
|
||||
assert vision_model["options"] == {"reasoningEffort": "high"}
|
||||
assert "options" not in vision_model
|
||||
|
||||
text_model = opencode_models["3/claude-text-only"]
|
||||
assert text_model["modalities"] == {
|
||||
|
||||
Reference in new issue
Block a user