fix: remove test code and switch-mode

This commit is contained in:
mingholy.lmh 2026-02-24 16:44:00 +08:00
parent ae6716c651
commit 740f4e0949
13 changed files with 43 additions and 367 deletions

View file

@ -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,
);
}