mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
fix: 修复模型常量更新导致的单测失败
- 将 ModelDialog.test.tsx 中的 MAINLINE_CODER_MODEL 替换为 DEFAULT_QWEN_MODEL - 修复 modelConfigResolver.test.ts 中 OpenAI auth 类型的默认模型期望 - 统一使用 core 包导出的 MAINLINE_CODER_MODEL 常量 Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
42a5b4d1e0
commit
51214d9032
7 changed files with 30 additions and 33 deletions
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
import {
|
||||
AuthType,
|
||||
DEFAULT_QWEN_MODEL,
|
||||
type Config,
|
||||
type AvailableModel as CoreAvailableModel,
|
||||
QWEN_OAUTH_MODELS,
|
||||
|
|
@ -20,9 +19,6 @@ export type AvailableModel = {
|
|||
isVision?: boolean;
|
||||
};
|
||||
|
||||
// Re-export constant from core for backwards compatibility
|
||||
export { DEFAULT_QWEN_MODEL as MAINLINE_CODER };
|
||||
|
||||
const CACHED_QWEN_OAUTH_MODELS: AvailableModel[] = QWEN_OAUTH_MODELS.map(
|
||||
(model) => ({
|
||||
id: model.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue