mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
Merge pull request #1952 from QwenLM/coding-plan-ui-fix
feat(auth): add automatic backup of settings.json before auth modification
This commit is contained in:
commit
1979e2121b
12 changed files with 72 additions and 21 deletions
|
|
@ -266,12 +266,12 @@ This is the approach used in the [one-file setup example](#recommended-one-file-
|
|||
|
||||
**Priority summary:**
|
||||
|
||||
| Priority | Source | Override behavior |
|
||||
| ----------- | ------------------------------ | ---------------------------------------- |
|
||||
| 1 (highest) | CLI flags (`--openai-api-key`) | Always wins |
|
||||
| 2 | System env (`export`, inline) | Overrides `.env` and `settings.env` |
|
||||
| 3 | `.env` file | Only sets if not in system env |
|
||||
| 4 (lowest) | `settings.json` → `env` | Only sets if not in system env or `.env` |
|
||||
| Priority | Source | Override behavior |
|
||||
| ----------- | ------------------------------ | -------------------------------------------- |
|
||||
| 1 (highest) | CLI flags (`--openai-api-key`) | Always wins |
|
||||
| 2 | System env (`export`, inline) | Overrides `.env` and `settings.json` → `env` |
|
||||
| 3 | `.env` file | Only sets if not in system env |
|
||||
| 4 (lowest) | `settings.json` → `env` | Only sets if not in system env or `.env` |
|
||||
|
||||
#### Step 3: Switch models with `/model`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue