mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-07-10 01:29:17 +00:00
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> |
||
|---|---|---|
| .. | ||
| src | ||
| index.ts | ||
| package.json | ||
| test-setup.ts | ||
| tsconfig.json | ||
| vitest.config.ts | ||