feat: add Grok, OpenAI, Claude, Gemini, Kimi AI providers

- Add new MCP clients for Grok (xAI), OpenAI, Claude, Gemini, Kimi
- Update auto_trader, backtest, and strategy to support all providers
- Add provider icons and fix SVG gradient conflicts
- Add API application links and hints in model config modal
- Show model version in AI model list cards
- Add Chinese/English translations for provider hints
- Remove deprecated traders component files
This commit is contained in:
tinkle-community
2025-12-11 15:16:59 +08:00
parent 78b5e73966
commit e5703ffab6
24 changed files with 695 additions and 837 deletions

View File

@@ -518,10 +518,16 @@ export const translations = {
'Custom API base URL, e.g.: https://api.openai.com/v1',
leaveBlankForDefault: 'Leave blank to use default API address',
modelConfigInfo1:
'• API Key will be encrypted and stored, please ensure it is valid',
modelConfigInfo2: '• Base URL is used for custom API server address',
'• For official API, only API Key is required, leave other fields blank',
modelConfigInfo2: '• Custom Base URL and Model Name only needed for third-party proxies',
modelConfigInfo3:
'• After deleting configuration, traders using this model will not work properly',
'• API Key is encrypted and stored securely',
defaultModel: 'Default model',
applyApiKey: 'Apply API Key',
kimiApiNote: 'Kimi requires API Key from international site (moonshot.ai), China region keys are not compatible',
leaveBlankForDefaultModel: 'Leave blank to use default model',
customModelName: 'Model Name (Optional)',
customModelNamePlaceholder: 'e.g.: deepseek-chat, qwen3-max, gpt-4o',
saveConfig: 'Save Configuration',
editExchange: 'Edit Exchange',
addExchange: 'Add Exchange',
@@ -1506,9 +1512,15 @@ export const translations = {
customBaseURL: 'Base URL (可选)',
customBaseURLPlaceholder: '自定义API基础URL如: https://api.openai.com/v1',
leaveBlankForDefault: '留空则使用默认API地址',
modelConfigInfo1: '• API Key将被加密存储请确保密钥有效',
modelConfigInfo2: '• Base URL用于自定义API服务器地址',
modelConfigInfo3: '• 删除配置后,使用此模型的交易员将无法正常工作',
modelConfigInfo1: '• 使用官方 API 时,只需填写 API Key其他字段留空即可',
modelConfigInfo2: '• 自定义 Base URL 和 Model Name 仅在使用第三方代理时需要填写',
modelConfigInfo3: '• API Key 加密存储,不会明文展示',
defaultModel: '默认模型',
applyApiKey: '申请 API Key',
kimiApiNote: 'Kimi 需要从国际站申请 API Key (moonshot.ai),中国区 Key 不通用',
leaveBlankForDefaultModel: '留空使用默认模型名称',
customModelName: 'Model Name (可选)',
customModelNamePlaceholder: '例如: deepseek-chat, qwen3-max, gpt-4o',
saveConfig: '保存配置',
editExchange: '编辑交易所',
addExchange: '添加交易所',