Fix Z.AI credential resolution and improve 401 auth diagnostics
This commit is contained in:
@@ -43,6 +43,20 @@
|
||||
"test_status": "pnpm test:run + pnpm typecheck passing"
|
||||
},
|
||||
|
||||
"zai-auth-resolution-and-401-hints": {
|
||||
"status": "completed",
|
||||
"date": "2026-02-16",
|
||||
"updated": "2026-02-16",
|
||||
"summary": "Unified Z.AI credential resolution so zhipuai model switches resolve credentials from config, env (including ZAI_API_KEY), and auth store regardless of use_oauth flag. Added clearer Z.AI-specific 401 diagnostics when API auth fails (including missing model.request scope hint).",
|
||||
"files_modified": [
|
||||
"src/daemon/models.ts",
|
||||
"src/models/openai.ts",
|
||||
"src/daemon/clientFactory.test.ts",
|
||||
"src/models/openai.test.ts"
|
||||
],
|
||||
"test_status": "pnpm test:run src/daemon/clientFactory.test.ts src/models/openai.test.ts + pnpm typecheck passing"
|
||||
},
|
||||
|
||||
"deployment-port-env-override": {
|
||||
"status": "completed",
|
||||
"date": "2026-02-16",
|
||||
|
||||
Reference in New Issue
Block a user