mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-07 06:28:20 +00:00
fix(agy): remove max_thinking_tokens when switching to non-claude model
Cleans up the thinking token limit setting when user switches from a Claude model to a Gemini model via ccs agy --config.
This commit is contained in:
@@ -172,6 +172,11 @@ export async function configureProviderModel(
|
|||||||
...ccsControlledEnv,
|
...ccsControlledEnv,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Remove MAX_THINKING_TOKENS when switching away from Claude model
|
||||||
|
if (!isClaude && mergedEnv.MAX_THINKING_TOKENS) {
|
||||||
|
delete mergedEnv.MAX_THINKING_TOKENS;
|
||||||
|
}
|
||||||
|
|
||||||
// Build final settings: preserve user top-level settings + update env
|
// Build final settings: preserve user top-level settings + update env
|
||||||
const settings: Record<string, unknown> = {
|
const settings: Record<string, unknown> = {
|
||||||
...existingSettings,
|
...existingSettings,
|
||||||
|
|||||||
Reference in New Issue
Block a user