mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 04:18:05 +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,
|
||||
};
|
||||
|
||||
// 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
|
||||
const settings: Record<string, unknown> = {
|
||||
...existingSettings,
|
||||
|
||||
Reference in New Issue
Block a user