feat: Add Baidu Qianfan V2 channel support #725

- Update channel constants to include Baidu V2 channel
- Create new Baidu V2 adaptor for relay
- Add Baidu V2 models and channel configuration
- Update relay adaptor to support Baidu V2 channel
- Modify web channel constants to include Baidu V2 option
This commit is contained in:
1808837298@qq.com
2025-02-12 00:07:02 +08:00
parent 28c13e5a0f
commit eceb6afcdd
8 changed files with 158 additions and 47 deletions

View File

@@ -1,124 +1,111 @@
export const CHANNEL_OPTIONS = [
{ key: 1, value: 1, color: 'green', label: 'OpenAI' },
{ value: 1, color: 'green', label: 'OpenAI' },
{
key: 2,
value: 2,
color: 'light-blue',
label: 'Midjourney Proxy'
},
{
key: 5,
value: 5,
color: 'blue',
label: 'Midjourney Proxy Plus'
},
{
key: 36,
value: 36,
color: 'purple',
label: 'Suno API'
},
{ key: 4, value: 4, color: 'grey', label: 'Ollama' },
{ value: 4, color: 'grey', label: 'Ollama' },
{
key: 14,
value: 14,
color: 'indigo',
label: 'Anthropic Claude'
},
{
key: 33,
value: 33,
color: 'indigo',
label: 'AWS Claude'
},
{ key: 41, value: 41, color: 'blue', label: 'Vertex AI' },
{ value: 41, color: 'blue', label: 'Vertex AI' },
{
key: 3,
value: 3,
color: 'teal',
label: 'Azure OpenAI'
},
{
key: 34,
value: 34,
color: 'purple',
label: 'Cohere'
},
{ key: 39, value: 39, color: 'grey', label: 'Cloudflare' },
{ key: 43, value: 43, color: 'blue', label: 'DeepSeek' },
{ value: 39, color: 'grey', label: 'Cloudflare' },
{ value: 43, color: 'blue', label: 'DeepSeek' },
{
key: 15,
value: 15,
color: 'blue',
label: '百度文心千帆'
},
{
key: 17,
value: 46,
color: 'blue',
label: '百度文心千帆V2'
},
{
value: 17,
color: 'orange',
label: '阿里通义千问'
},
{
key: 18,
value: 18,
color: 'blue',
label: '讯飞星火认知'
},
{
key: 16,
value: 16,
color: 'violet',
label: '智谱 ChatGLM'
},
{
key: 26,
value: 26,
color: 'purple',
label: '智谱 GLM-4V'
},
{
key: 24,
value: 24,
color: 'orange',
label: 'Google Gemini'
},
{
key: 11,
value: 11,
color: 'orange',
label: 'Google PaLM2'
},
{
key: 48,
value: 48,
value: 45,
color: 'blue',
label: '火山方舟(豆包)'
},
{ key: 25, value: 25, color: 'green', label: 'Moonshot' },
{ key: 19, value: 19, color: 'blue', label: '360 智脑' },
{ key: 23, value: 23, color: 'teal', label: '腾讯混元' },
{ key: 31, value: 31, color: 'green', label: '零一万物' },
{ key: 35, value: 35, color: 'green', label: 'MiniMax' },
{ key: 37, value: 37, color: 'teal', label: 'Dify' },
{ key: 38, value: 38, color: 'blue', label: 'Jina' },
{ key: 40, value: 40, color: 'purple', label: 'SiliconCloud' },
{ key: 42, value: 42, color: 'blue', label: 'Mistral AI' },
{ key: 8, value: 8, color: 'pink', label: '自定义渠道' },
{ value: 25, color: 'green', label: 'Moonshot' },
{ value: 19, color: 'blue', label: '360 智脑' },
{ value: 23, color: 'teal', label: '腾讯混元' },
{ value: 31, color: 'green', label: '零一万物' },
{ value: 35, color: 'green', label: 'MiniMax' },
{ value: 37, color: 'teal', label: 'Dify' },
{ value: 38, color: 'blue', label: 'Jina' },
{ value: 40, color: 'purple', label: 'SiliconCloud' },
{ value: 42, color: 'blue', label: 'Mistral AI' },
{ value: 8, color: 'pink', label: '自定义渠道' },
{
key: 22,
value: 22,
color: 'blue',
label: '知识库FastGPT'
},
{
key: 21,
value: 21,
color: 'purple',
label: '知识库AI Proxy'
},
{
key: 47,
value: 47,
value: 44,
color: 'purple',
label: '嵌入模型MokaAI M3E'
}