fix alwaysThinkingEnabled

This commit is contained in:
GrosQuildu
2026-02-19 16:09:04 +01:00
parent 4f2ae950d9
commit 78d4c0279f
+4 -2
View File
@@ -121,7 +121,7 @@ claude-local() {
ANTHROPIC_BASE_URL=http://localhost:1234 \
ANTHROPIC_AUTH_TOKEN=lmstudio \
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
claude --settings '{"alwaysThinkingEnabled": false}' --model qwen/qwen3-coder-next "$@"
claude --model qwen/qwen3-coder-next "$@"
}
```
@@ -400,7 +400,9 @@ claude
Or use the `claude-local` shell function from [Shell Setup](#shell-setup) to avoid typing the env vars every time.
If `claude-local` fails with `The number of tokens to keep from the initial prompt is greater than the context length.` message, then try disabling auto-loaded tools (`--strict-mcp-config` first, then try also `--disable-slash-commands` and `--system-prompt "You are a helpful coding assistant."`)
If `claude-local` fails with `The number of tokens to keep from the initial prompt is greater than the context length.` message, then try disabling auto-loaded tools (`--strict-mcp-config` first, then try also `--disable-slash-commands` and `--system-prompt "You are a helpful coding assistant."`).
If `claude-local` fails with `request.thinking.type: Invalid discriminator value. Expected 'enabled' | 'disabled'"` then add `--settings '{"alwaysThinkingEnabled": false}'` flag.
For the full list of environment variables (model overrides, subagent models, traffic controls, etc.), see the [model configuration docs](https://code.claude.com/docs/en/model-config).