Skip to content

Commit 78d4c02

Browse files
committed
fix alwaysThinkingEnabled
1 parent 4f2ae95 commit 78d4c02

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ claude-local() {
121121
ANTHROPIC_BASE_URL=http://localhost:1234 \
122122
ANTHROPIC_AUTH_TOKEN=lmstudio \
123123
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 \
124-
claude --settings '{"alwaysThinkingEnabled": false}' --model qwen/qwen3-coder-next "$@"
124+
claude --model qwen/qwen3-coder-next "$@"
125125
}
126126
```
127127

@@ -400,7 +400,9 @@ claude
400400

401401
Or use the `claude-local` shell function from [Shell Setup](#shell-setup) to avoid typing the env vars every time.
402402

403-
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."`)
403+
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."`).
404+
405+
If `claude-local` fails with `request.thinking.type: Invalid discriminator value. Expected 'enabled' | 'disabled'"` then add `--settings '{"alwaysThinkingEnabled": false}'` flag.
404406

405407
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).
406408

0 commit comments

Comments
 (0)