feat: 集成千帆大模型(百度文心一言)支持
- 新增 qianfan 服务商配置(config.js) - DeepSeekAPI 支持动态 model 和 appId 参数 - 千帆 API 需要额外的 appid header - 更新所有 API 调用点传递完整配置 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,15 @@ export const modelProviders = {
|
||||
apiKey: import.meta.env.VITE_DEEPSEEK_API_KEY || '',
|
||||
model: import.meta.env.VITE_DEEPSEEK_MODEL || 'deepseek-chat'
|
||||
},
|
||||
qianfan: {
|
||||
id: 'qianfan',
|
||||
name: '千帆大模型',
|
||||
description: '百度文心一言',
|
||||
apiUrl: import.meta.env.VITE_QIANFAN_API_URL || 'https://qianfan.baidubce.com/v2/chat/completions',
|
||||
apiKey: import.meta.env.VITE_QIANFAN_API_KEY || '',
|
||||
appId: import.meta.env.VITE_QIANFAN_APP_ID || '',
|
||||
model: import.meta.env.VITE_QIANFAN_MODEL || 'ernie-4.0-8k'
|
||||
},
|
||||
openai: {
|
||||
id: 'openai',
|
||||
name: 'OpenAI',
|
||||
|
||||
Reference in New Issue
Block a user