mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
docs: fix jsonc trailing commas that break settings parser
The settings parser uses stripJsonComments + JSON.parse, which does not support trailing commas. Changed the config example from jsonc to json and removed trailing commas so users can copy-paste safely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
813d863e7c
commit
5b9c94b436
1 changed files with 5 additions and 6 deletions
|
|
@ -33,18 +33,17 @@ You can also give it specific instructions:
|
|||
|
||||
## Manual configuration
|
||||
|
||||
Add a `statusLine` object under the `ui` key in your settings file:
|
||||
Add a `statusLine` object under the `ui` key in `~/.qwen/settings.json`:
|
||||
|
||||
```jsonc
|
||||
// ~/.qwen/settings.json
|
||||
```json
|
||||
{
|
||||
"ui": {
|
||||
"statusLine": {
|
||||
"type": "command",
|
||||
"command": "input=$(cat); echo \"$(echo $input | jq -r '.model.id') ctx:$(echo $input | jq -r '.context_window.last_prompt_token_count')\"",
|
||||
"padding": 0,
|
||||
},
|
||||
},
|
||||
"padding": 0
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue