qwen-code/packages/cli
Yufeng He 9a63d565aa
fix(cli): detect USE_OPENAI auth when the model is set via QWEN_MODEL (#5647)
getAuthTypeFromEnv() only accepted OPENAI_MODEL as the model env var for
USE_OPENAI, but QWEN_MODEL is an equally valid one: it is listed in
AUTH_ENV_MODEL_VARS[USE_OPENAI], documented in the function's own comment,
and honored by the model-resolution path. As a result a config that sets
OPENAI_API_KEY + QWEN_MODEL + OPENAI_BASE_URL (without OPENAI_MODEL) failed
auth detection and returned undefined.

Accept either OPENAI_MODEL or QWEN_MODEL, matching the rest of the file.

Signed-off-by: Yufeng He <40085740+he-yufeng@users.noreply.github.com>
2026-06-22 22:45:24 +08:00
..
src fix(cli): detect USE_OPENAI auth when the model is set via QWEN_MODEL (#5647) 2026-06-22 22:45:24 +08:00
index.ts feat(cli): add CPU profiling support for Chrome DevTools analysis (#4620) 2026-06-03 03:01:29 +00:00
package.json feat(voice): voice dictation with native capture, streaming, and biasing (#5502) 2026-06-22 14:33:36 +08:00
test-setup.ts perf(cli): code-split lowlight to cut startup V8 parse cost (#4070) 2026-05-15 17:26:18 +08:00
tsconfig.json feat(voice): voice dictation with native capture, streaming, and biasing (#5502) 2026-06-22 14:33:36 +08:00
vitest.config.ts feat(voice): voice dictation with native capture, streaming, and biasing (#5502) 2026-06-22 14:33:36 +08:00