Reasoning effort is hardcoded — no way to select high/xhigh reasoning tiers for OpenAI or Anthropic models
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Start with AgentFactory.kt, especially withReasoningParams and the OpenAI/Anthropic reasoning configuration, then inspect ModelSettings, ModelSettingsForm, and AcpAgentService.kt for the existing thought-level UI pattern. Also review CustomOpenAIParams.kt for effort parsing and reserved body keys. Done means users can select supported reasoning tiers in the model settings, the selected tier reaches built-in and ProxyAI requests, Anthropic budgets scale appropriately, and xhigh is not silently downgraded.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happened?
ProxyAI gives no way to control reasoning effort. Whatever tier a model supports, the plugin picks one fixed level and there is no setting, dropdown, or config field to change it. For anyone paying for a top-tier subscription specifically to get the highest reasoning modes (Claude's extended-thinking tiers, GPT-5.x high/xhigh reasoning), that capability is unreachable through this plugin.
Three separate paths, all hardcoded:
-
OpenAI — pinned to
MEDIUM.AgentFactory.kt:263-268is the only place effort is ever set:return base.copy( reasoning = base.reasoning ?: ReasoningConfig( effort = ReasoningEffort.MEDIUM, summary = ReasoningSummary.AUTO ) )No branch, no settings read, no override.
-
Anthropic — thinking budget hard-capped at 2,048 tokens.
AgentFactory.kt:292-300:return (limit / 2) .coerceAtLeast(ANTHROPIC_MIN_THINKING_BUDGET) // 512 .coerceAtMost(ANTHROPIC_DEFAULT_THINKING_BUDGET) // 2_048The budget is clamped to ≤2,048 regardless of model or configured max output tokens — far below what the models support.
-
ProxyAI-hosted provider — no reasoning params sent at all.
withReasoningParams(AgentFactory.kt:232-247) dispatches on the KoogLLMProvider. ProxyAI models are built withvirtualModel(ProxyAILLMClient.ProxyAI, ...)(ModelProvider.kt:407), which isLLMProvider("proxyai", "ProxyAI")(ProxyAILLMClient.kt:75), so they fall intoelse -> params. Claude and GPT models accessed via ProxyAI get zero reasoning configuration.
There is also no UI for any of this — grep -rniE "reasoning|thought.?level|effort" over settings/ and messages/ returns two incidental hits, neither a control.
Field 2 — "Proposed solution"
- Add a reasoning-effort selection alongside the existing per-
FeatureTypemodel selection inModelSettings/ModelSettingsForm, surfaced in the model dropdown the way the ACP runtime already does it —AcpConfigCategories.THOUGHT_LEVEL(AcpAgentService.kt:889) plusAgentRuntimeOptionsComboBoxActionalready implement exactly this UX for external agents, so the pattern exists in-tree. - Plumb the selection into
withReasoningParamsinstead of the hardcodedReasoningEffort.MEDIUM. - Extend
asReasoningEffort(CustomOpenAIParams.kt:202-211) beyondnone|minimal|low|medium|highto cover the newerxhightier. - Derive the Anthropic thinking budget from the selected tier rather than clamping to 2,048, and let it scale with the model's real limits.
- Extend the same handling to the ProxyAI-hosted provider so the top tiers are reachable on the default configuration.
Field 3 — "Additional context"
Today the only workaround is the Custom OpenAI provider with a free-form body param — reasoning_effort is not in CUSTOM_OPENAI_RESERVED_BODY_KEYS (CustomOpenAIParams.kt:74-88), so it survives into additionalProperties and is flattened onto the request verbatim by CustomOpenAIAdditionalPropertiesFlatteningSerializer (CustomOpenAILLMClient.kt:569-582). That requires abandoning the built-in providers entirely.
Related bug worth fixing alongside: on the Responses endpoint the nested form {"reasoning": {"effort": "xhigh"}} is silently downgraded. reasoning is reserved (CustomOpenAIParams.kt:95), asReasoningEffort returns null for any unrecognised value, and the null then falls back to the upstream MEDIUM (:57-64). No warning, no error — the user believes they set a higher tier and did not.
Relevant log output or stack trace
Steps to reproduce
No response
CodeGPT version
all
Operating System
macOS
- Lingua principale
- Kotlin
- Stelle
- 1.9k
- Fork
- 401
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di carlrobertoh/ProxyAI
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
carlrobertoh/ProxyAI#1250 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
carlrobertoh/ProxyAI#1233 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
carlrobertoh/ProxyAI#1203 · 1 reazione ·
-
Anthropic Models - HaikuApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
carlrobertoh/ProxyAI#1160 · 2 reazioni ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
carlrobertoh/ProxyAI#1068 ·
Tutte le issue di carlrobertoh/ProxyAI
Issue simili
-
Location search keeps showing stale "Open-Meteo can't find ..." message after clearing search queryApertaBug Needs review
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
breezy-weather/breezy-weather#3082 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 76/100
wangzan101/Mika#1033 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
commons-app/apps-android-commons#7486 ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
erkamyaman/unslop-anything#462 ·
I maintainer di solito rispondono entro 1 giorno
-
area: ci area: local-media area: startup area: ui platform: bilibili platform: netease platform: youtube status: needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
cwuom/NeriPlayer#794 ·
I maintainer di solito rispondono entro 1 giorno