refactor(converters): 优化Claude到Gemini的转换逻辑 fix(kiro): 修复社交认证刷新问题 perf(ollama): 提升模型列表获取效率 docs: 为README添加可折叠区块 style: 清理控制台日志
59 lines
No EOL
1.6 KiB
JavaScript
59 lines
No EOL
1.6 KiB
JavaScript
/**
|
|
* 各提供商支持的模型列表
|
|
* 用于前端UI选择不支持的模型
|
|
*/
|
|
|
|
export const PROVIDER_MODELS = {
|
|
'gemini-cli-oauth': [
|
|
'gemini-2.5-flash',
|
|
'gemini-2.5-flash-lite',
|
|
'gemini-2.5-pro',
|
|
'gemini-2.5-pro-preview-06-05',
|
|
'gemini-2.5-flash-preview-09-2025',
|
|
'gemini-3-pro-preview',
|
|
'gemini-3-flash-preview'
|
|
],
|
|
'gemini-antigravity': [
|
|
'gemini-2.5-computer-use-preview-10-2025',
|
|
'gemini-3-pro-image-preview',
|
|
'gemini-3-pro-preview',
|
|
'gemini-3-flash-preview',
|
|
'gemini-2.5-flash-preview',
|
|
'gemini-claude-sonnet-4-5',
|
|
'gemini-claude-sonnet-4-5-thinking',
|
|
'gemini-claude-opus-4-5-thinking'
|
|
],
|
|
'claude-custom': [],
|
|
'claude-kiro-oauth': [
|
|
'claude-opus-4-5',
|
|
'claude-opus-4-5-20251101',
|
|
'claude-haiku-4-5',
|
|
'claude-sonnet-4-5',
|
|
'claude-sonnet-4-5-20250929',
|
|
'claude-sonnet-4-20250514',
|
|
'claude-3-7-sonnet-20250219'
|
|
],
|
|
'openai-custom': [],
|
|
'openaiResponses-custom': [],
|
|
'openai-qwen-oauth': [
|
|
'qwen3-coder-plus',
|
|
'qwen3-coder-flash'
|
|
]
|
|
};
|
|
|
|
/**
|
|
* 获取指定提供商类型支持的模型列表
|
|
* @param {string} providerType - 提供商类型
|
|
* @returns {Array<string>} 模型列表
|
|
*/
|
|
export function getProviderModels(providerType) {
|
|
return PROVIDER_MODELS[providerType] || [];
|
|
}
|
|
|
|
/**
|
|
* 获取所有提供商的模型列表
|
|
* @returns {Object} 所有提供商的模型映射
|
|
*/
|
|
export function getAllProviderModels() {
|
|
return PROVIDER_MODELS;
|
|
} |