// 供应商
export const providers = [
	{ label: 'OpenAI协议', value: 'OpenAI' },
	{ label: '阿里百炼', value: 'Aliyun' },
	{ label: '火山方舟', value: 'Ark' },
	{ label: 'DeepSeek', value: 'DeepSeek' },
	{ label: '智谱清言', value: 'ChatGLM' },
	{ label: '硅基流动', value: 'Siliconflow' },
	{ label: 'Gitee', value: 'Gitee' },
	{ label: 'Ollama', value: 'Ollama' },
	{ label: 'Kimi', value: 'Kimi' },
	{ label: '搜索服务', value: 'BoCha' },
	{ label: 'Jina', value: 'Jina' },
];

// 模型类型
export const modelTypes = [
	{ label: '聊天', value: 'Chat' },
	{ label: '推理', value: 'Reason' },
	{ label: '向量', value: 'Embedding' },
	{ label: '排序', value: 'Reranker' },
	{ label: '图片', value: 'Image' },
	{ label: '视频', value: 'Video' },
	{ label: '视觉', value: 'Vision' },
	{ label: '音频', value: 'Voice' },
	{ label: '搜索', value: 'Search' },
	{ label: '解析', value: 'Parse' },
];

// 各供应商的模型映射
export const providerModels = {
	Aliyun: [
		{ type: 'Chat', model: 'qwen-max-latest', json: true },
		{ type: 'Chat', model: 'qwen-plus' },
		{ type: 'Chat', model: 'qwen3-235b-a22b' },
		{ type: 'Vision', model: 'qwen-vl-plus-latest' },
		{ type: 'Vision', model: 'qwen-vl-max-latest' },
		{ type: 'Vision', model: 'qwen-vl-ocr' },
		{ type: 'Embedding', model: 'text-embedding-v4', dimensions: [2048, 1536, 1024, 768, 512, 256, 128, 64] },
		{ type: 'Embedding', model: 'text-embedding-v3', dimensions: [1024, 768, 512, 256, 128, 64] },
		{ type: 'Reranker', model: 'gte-rerank-v2' },
		{ type: 'Image', model: 'flux-schnell' },
		{ type: 'Voice', model: 'paraformer-v2' },
		{ type: 'Voice', model: 'cosyvoice-v1' },
	],
	Ark: [
		{ type: 'Chat', model: 'deepseek-v3-250324', json: true },
		{ type: 'Chat', model: 'doubao-1-5-pro-32k-250115' },
		{ type: 'Reason', model: 'deepseek-r1-250120' },
		{ type: 'Vision', model: 'doubao-1-5-vision-pro-32k-250115' },
		{ type: 'Embedding', model: 'doubao-embedding-large-text-240915' },
	],
	DeepSeek: [
		{ type: 'Chat', model: 'deepseek-chat', json: true },
		{ type: 'Reason', model: 'deepseek-reasoner' },
	],
	ChatGLM: [
		{ type: 'Chat', model: 'glm-4-flash' },
		{ type: 'Chat', model: 'glm-4-plus' },
		{ type: 'Reason', model: 'glm-z1-air' },
		{ type: 'Reason', model: 'glm-z1-airx' },
		{ type: 'Reason', model: 'glm-z1-flash' },
		{ type: 'Vision', model: 'glm-4v-flash' },
		{ type: 'Vision', model: 'glm-4v-plus' },
		{ type: 'Embedding', model: 'embedding-3' },
	],
	OpenAI: [
		{ type: 'Chat', model: 'gpt-4.1-nano', json: true },
		{ type: 'Chat', model: 'gpt-4.1-mini', json: true },
		{ type: 'Chat', model: 'gpt-4.1', json: true },
		{ type: 'Embedding', model: 'text-embedding-3-small' },
		{ type: 'Embedding', model: 'text-embedding-3-large' },
	],
	Siliconflow: [
		{ type: 'Chat', model: 'deepseek-ai/DeepSeek-V3', json: true },
		{ type: 'Chat', model: 'moonshotai/Kimi-K2-Instruct' },
		{ type: 'Image', model: 'black-forest-labs/FLUX.1-schnell' },
		{ type: 'Image', model: 'stabilityai/stable-diffusion-3-5-large' },
		{ type: 'Image', model: 'Kwai-Kolors/Kolors' },
		{ type: 'Video', model: 'Wan-AI/Wan2.1-I2V-14B-720P' },
		{ type: 'Video', model: 'Wan-AI/Wan2.1-I2V-14B-720P-Turbo' },
		{ type: 'Voice', model: 'FunAudioLLM/CosyVoice2-0.5B' },
		{ type: 'Voice', model: 'RVC-Boss/GPT-SoVITS' },
		{ type: 'Reason', model: 'deepseek-ai/DeepSeek-R1' },
		{ type: 'Reason', model: 'MiniMaxAI/MiniMax-M1-80k' },
		{ type: 'Vision', model: 'Qwen/Qwen2.5-VL-72B-Instruct' },
		{ type: 'Vision', model: 'Qwen/Qwen2.5-VL-32B-Instruct' },
		{ type: 'Embedding', model: 'Qwen/Qwen3-Embedding-8B' },
		{ type: 'Embedding', model: 'Qwen/Qwen3-Embedding-4B' },
		{ type: 'Embedding', model: 'BAAI/bge-m3' },
		{ type: 'Embedding', model: 'BAAI/bge-large-zh-v1.5' },
		{ type: 'Reranker', model: 'Qwen/Qwen3-Reranker-8B' },
		{ type: 'Reranker', model: 'Qwen/Qwen3-Reranker-4B' },
		{ type: 'Reranker', model: 'BAAI/bge-reranker-v2-m3' },
		{ type: 'Reranker', model: 'netease-youdao/bce-reranker-base_v1' },
	],
	Ollama: [
		{ type: 'Chat', model: 'qwen3:14b' },
		{ type: 'Chat', model: 'qwen3:30b' },
		{ type: 'Chat', model: 'qwen3:32b' },
		{ type: 'Chat', model: 'qwen3:256b' },
		{ type: 'Chat', model: 'qwen2.5:14b' },
		{ type: 'Chat', model: 'qwen2.5:32b' },
		{ type: 'Chat', model: 'qwen2.5:72b' },
		{ type: 'Embedding', model: 'bge-m3:latest' },
		{ type: 'Embedding', model: 'shaw/dmeta-embedding-zh' },
		{ type: 'Vision', model: 'minicpm-v:latest' },
		{ type: 'Vision', model: 'qwen2.5vl:7b' },
		{ type: 'Vision', model: 'qwen2.5vl:32b' },
		{ type: 'Vision', model: 'qwen2.5vl:72b' },
		{ type: 'Reason', model: 'deepseek-r1:8b' },
		{ type: 'Reason', model: 'deepseek-r1:14b' },
	],
	Kimi: [
		{ type: 'Vision', model: 'kimi-latest' },
		{ type: 'Reason', model: 'kimi-thinking-preview' },
		{ type: 'Chat', model: 'kimi-k2-0711-preview', json: true },
	],
	BoCha: [
		{ type: 'Search', model: 'bocha-web-search' },
		{ type: 'Search', model: 'sear-xng' },
	],
	Jina: [
		{ type: 'Parse', model: 'jina-reader' },
		{ type: 'Reranker', model: 'jina-reranker-m0' },
	],
	Gitee: [
		{ type: 'Embedding', model: 'Qwen3-Embedding-8B' },
		{ type: 'Reranker', model: 'Qwen3-Reranker-8B' },
	],
};

// 默认的 baseURL 的映射
export const providerBaseURLMap = {
	OpenAI: 'https://api.openai-hk.com/v1',
	Ark: 'https://ark.cn-beijing.volces.com/api/v3',
	Aliyun: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
	DeepSeek: 'https://api.deepseek.com/v1',
	Ollama: 'http://localhost:11434/v1',
	Siliconflow: 'https://api.siliconflow.cn/v1',
	ChatGLM: 'https://open.bigmodel.cn/api/paas/v4',
	MiniMax: 'https://api.minimax.chat/v1',
	Claude: 'https://api.anthropic.com/v1',
	BoCha: 'https://api.bochaai.com/v1/',
	Jina: 'https://r.jina.ai/',
	Gitee: 'https://ai.gitee.com/v1',
	Kimi: 'https://api.moonshot.cn/v1',
};
