mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-05-05 07:10:55 +00:00
fix: remove test code and switch-mode
This commit is contained in:
parent
ae6716c651
commit
740f4e0949
13 changed files with 43 additions and 367 deletions
|
|
@ -20,11 +20,8 @@ export type AvailableModel = {
|
|||
isVision?: boolean;
|
||||
};
|
||||
|
||||
// Re-export constants from core for backwards compatibility
|
||||
export {
|
||||
DEFAULT_QWEN_MODEL as MAINLINE_CODER,
|
||||
DEFAULT_QWEN_MODEL as MAINLINE_VLM,
|
||||
};
|
||||
// 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) => ({
|
||||
|
|
@ -134,21 +131,3 @@ export function getAvailableModelsForAuthType(
|
|||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* coder-model now has vision capabilities by default.
|
||||
* This function is kept for backwards compatibility but always returns the current model.
|
||||
*/
|
||||
export function getDefaultVisionModel(): string {
|
||||
return DEFAULT_QWEN_MODEL;
|
||||
}
|
||||
|
||||
/**
|
||||
* coder-model now has vision capabilities by default.
|
||||
* This function is kept for backwards compatibility but always returns true for the default model.
|
||||
*/
|
||||
export function isVisionModel(modelId: string): boolean {
|
||||
return getQwenOAuthModels().some(
|
||||
(model) => model.id === modelId && model.isVision,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue