mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-07-26 00:06:53 +08:00
feat: add AI Settings tab for managing providers and models
This commit is contained in:
@@ -307,6 +307,89 @@ export const en = {
|
||||
'Vision API Key': 'Vision API Key',
|
||||
'Embedding API URL': 'Embedding API URL',
|
||||
'Embedding API Key': 'Embedding API Key',
|
||||
'AI Providers & Models': 'AI Providers & Models',
|
||||
'Manage AI providers, synchronize compatible models, and configure default capabilities across the system.': 'Manage AI providers, synchronize compatible models, and configure default capabilities across the system.',
|
||||
'Add Provider': 'Add Provider',
|
||||
'Edit Provider': 'Edit Provider',
|
||||
'Pull Models': 'Pull Models',
|
||||
'Manual Add': 'Manual Add',
|
||||
'Clear Remote List': 'Clear Remote List',
|
||||
'Select models from the list to add them automatically': 'Select models from the list to add them automatically',
|
||||
'No remote models': 'No remote models',
|
||||
'No remote models found': 'No remote models found',
|
||||
'No remote models match search': 'No remote models match search',
|
||||
'Search fetched models': 'Search fetched models',
|
||||
'Already Added': 'Already Added',
|
||||
'Add Selected Models': 'Add Selected Models',
|
||||
'Fetch failed': 'Fetch failed',
|
||||
'Select models to add': 'Select models to add',
|
||||
'Added {count} models': 'Added {count} models',
|
||||
'Choose Template': 'Choose Template',
|
||||
'Configure Provider': 'Configure Provider',
|
||||
'Back to Templates': 'Back to Templates',
|
||||
'View Docs': 'View Docs',
|
||||
'Custom Provider': 'Custom Provider',
|
||||
'Custom Provider Description': 'Bring your own endpoint compatible with OpenAI or Gemini formats.',
|
||||
'OpenAI Provider': 'OpenAI',
|
||||
'OpenAI Provider Description': 'Access GPT-4o, GPT-4.1, GPT-3.5 and more models from OpenAI.',
|
||||
'Azure OpenAI Provider': 'Azure OpenAI',
|
||||
'Azure OpenAI Provider Description': 'Use OpenAI models deployed on Microsoft Azure.',
|
||||
'Google AI Provider': 'Google AI',
|
||||
'Google AI Provider Description': 'Gemini series models served via the Google AI platform.',
|
||||
'SiliconFlow Provider': 'SiliconFlow',
|
||||
'SiliconFlow Provider Description': 'High-performance inference platform with OpenAI-compatible APIs.',
|
||||
'OpenRouter Provider': 'OpenRouter',
|
||||
'OpenRouter Provider Description': 'Connect to multiple AI providers through a single OpenAI-style endpoint.',
|
||||
'Anthropic Provider': 'Anthropic',
|
||||
'Anthropic Provider Description': 'Claude 3 family models exposed through the Claude API.',
|
||||
'DeepSeek Provider': 'DeepSeek',
|
||||
'DeepSeek Provider Description': 'DeepSeek language models via OpenAI-compatible API.',
|
||||
'Grok Provider': 'Grok (xAI)',
|
||||
'Grok Provider Description': 'Grok models powered by xAI with OpenAI-style routes.',
|
||||
'Ollama Provider': 'Ollama',
|
||||
'Ollama Provider Description': 'Self-host and run models locally with Ollama\'s OpenAI bridge.',
|
||||
'Voyage Provider': 'Voyage AI',
|
||||
'Voyage Provider Description': 'High-quality embeddings and rerankers from Voyage AI.',
|
||||
'Delete provider?': 'Delete provider?',
|
||||
'Deleting this provider will also remove all associated models. Continue?': 'Deleting this provider will also remove all associated models. Continue?',
|
||||
'Deleted successfully': 'Deleted successfully',
|
||||
'Sync Models': 'Sync Models',
|
||||
'Sync completed: {created} created, {updated} updated': 'Sync completed: {created} created, {updated} updated',
|
||||
'Sync failed': 'Sync failed',
|
||||
'Add Model': 'Add Model',
|
||||
'Edit Model': 'Edit Model',
|
||||
'Delete model?': 'Delete model?',
|
||||
'This operation cannot be undone. Continue?': 'This operation cannot be undone. Continue?',
|
||||
'No models yet': 'No models yet',
|
||||
'Add your first AI provider to get started': 'Add your first AI provider to get started',
|
||||
'Default Models Configuration': 'Default Models Configuration',
|
||||
'Main Chat Model': 'Main Chat Model',
|
||||
'Primary assistant for conversations, reasoning, and tool calls.': 'Primary assistant for conversations, reasoning, and tool calls.',
|
||||
'Handles multimodal perception such as image understanding.': 'Handles multimodal perception such as image understanding.',
|
||||
'Transforms content into dense vectors for search and retrieval.': 'Transforms content into dense vectors for search and retrieval.',
|
||||
'Optimises ranking quality for search candidates.': 'Optimises ranking quality for search candidates.',
|
||||
'Covers text-to-speech and speech understanding scenarios.': 'Covers text-to-speech and speech understanding scenarios.',
|
||||
'Supports function calling, orchestration, and automation.': 'Supports function calling, orchestration, and automation.',
|
||||
'Select a model': 'Select a model',
|
||||
'Template': 'Template',
|
||||
'Select a template': 'Select a template',
|
||||
'Display Name': 'Display Name',
|
||||
'Enter name': 'Enter name',
|
||||
'Identifier': 'Identifier',
|
||||
'Enter identifier': 'Enter identifier',
|
||||
'Only lowercase letters, numbers, dash, dot and underscore are allowed': 'Only lowercase letters, numbers, dash, dot and underscore are allowed',
|
||||
'API Format': 'API Format',
|
||||
'Base URL': 'Base URL',
|
||||
'Enter base url': 'Enter base URL',
|
||||
'Optional, can also be provided per request': 'Optional, can also be provided per request',
|
||||
'Model Identifier': 'Model Identifier',
|
||||
'Enter model identifier': 'Enter model identifier',
|
||||
'Description': 'Description',
|
||||
'Capabilities': 'Capabilities',
|
||||
'Context Window': 'Context Window',
|
||||
'Embedding Dimensions': 'Embedding Dimensions',
|
||||
'Price /1K input tokens': 'Price /1K input tokens',
|
||||
'Price /1K output tokens': 'Price /1K output tokens',
|
||||
|
||||
// Adapters
|
||||
'Missing required config:': 'Missing required config:',
|
||||
|
||||
@@ -259,6 +259,10 @@ export const zh = {
|
||||
'Save': '保存',
|
||||
'App Settings': '应用设置',
|
||||
'AI Settings': 'AI设置',
|
||||
'Choose Template': '选择模板',
|
||||
'Configure Provider': '配置提供商',
|
||||
'Back to Templates': '返回选择',
|
||||
'View Docs': '查看文档',
|
||||
'Vision Model': '视觉模型',
|
||||
'Embedding Model': '嵌入模型',
|
||||
'Embedding Dimension': '向量维度',
|
||||
@@ -308,6 +312,85 @@ export const zh = {
|
||||
'Vision API Key': '视觉模型 API Key',
|
||||
'Embedding API URL': '嵌入模型 API 地址',
|
||||
'Embedding API Key': '嵌入模型 API Key',
|
||||
'AI Providers & Models': 'AI 提供商与模型',
|
||||
'Manage AI providers, synchronize compatible models, and configure default capabilities across the system.': '管理所有 AI 提供商,批量同步兼容模型,并配置系统默认能力。',
|
||||
'Add Provider': '添加提供商',
|
||||
'Edit Provider': '编辑提供商',
|
||||
'Pull Models': '拉取模型',
|
||||
'Manual Add': '手动添加',
|
||||
'Clear Remote List': '清空列表',
|
||||
'Select models from the list to add them automatically': '选择模型后可一键添加到系统',
|
||||
'No remote models': '暂无远程模型',
|
||||
'No remote models found': '未获取到远程模型',
|
||||
'No remote models match search': '没有匹配的远程模型',
|
||||
'Search fetched models': '搜索已拉取模型',
|
||||
'Already Added': '已添加',
|
||||
'Add Selected Models': '添加所选模型',
|
||||
'Fetch failed': '拉取失败',
|
||||
'Select models to add': '请选择要添加的模型',
|
||||
'Added {count} models': '已添加 {count} 个模型',
|
||||
'Custom Provider': '自定义提供商',
|
||||
'Custom Provider Description': '自定义兼容 OpenAI 或 Gemini 标准的 API 端点。',
|
||||
'OpenAI Provider': 'OpenAI',
|
||||
'OpenAI Provider Description': '访问 OpenAI 的 GPT-4o、GPT-4.1、GPT-3.5 等模型。',
|
||||
'Azure OpenAI Provider': 'Azure OpenAI',
|
||||
'Azure OpenAI Provider Description': '使用托管在微软 Azure 上的 OpenAI 模型。',
|
||||
'Google AI Provider': 'Google AI',
|
||||
'Google AI Provider Description': 'Google AI 平台提供的 Gemini 系列模型。',
|
||||
'SiliconFlow Provider': '硅基流动',
|
||||
'SiliconFlow Provider Description': '硅基流动高性能推理平台,兼容 OpenAI 接口。',
|
||||
'OpenRouter Provider': 'OpenRouter',
|
||||
'OpenRouter Provider Description': '通过一个 OpenAI 风格入口接入多家 AI 提供商。',
|
||||
'Anthropic Provider': 'Anthropic',
|
||||
'Anthropic Provider Description': '通过 Claude API 使用 Claude 3 系列模型。',
|
||||
'DeepSeek Provider': 'DeepSeek',
|
||||
'DeepSeek Provider Description': 'DeepSeek 语言模型,支持 OpenAI 兼容接口。',
|
||||
'Grok Provider': 'Grok (xAI)',
|
||||
'Grok Provider Description': 'xAI 的 Grok 模型,提供 OpenAI 风格接口。',
|
||||
'Ollama Provider': 'Ollama',
|
||||
'Ollama Provider Description': '使用 Ollama 在本地运行并管理大模型。',
|
||||
'Voyage Provider': 'Voyage AI',
|
||||
'Voyage Provider Description': 'Voyage AI 提供的高质量嵌入与重排序模型。',
|
||||
'Delete provider?': '确认删除该提供商?',
|
||||
'Deleting this provider will also remove all associated models. Continue?': '删除后将同时移除该提供商下的全部模型,是否继续?',
|
||||
'Deleted successfully': '删除成功',
|
||||
'Sync Models': '同步模型',
|
||||
'Sync completed: {created} created, {updated} updated': '同步完成:新增 {created} 个,更新 {updated} 个',
|
||||
'Sync failed': '同步失败',
|
||||
'Add Model': '添加模型',
|
||||
'Edit Model': '编辑模型',
|
||||
'Delete model?': '确认删除该模型?',
|
||||
'This operation cannot be undone. Continue?': '此操作不可撤销,是否继续?',
|
||||
'No models yet': '暂无模型',
|
||||
'Add your first AI provider to get started': '添加第一个 AI 提供商开始配置',
|
||||
'Default Models Configuration': '默认模型配置',
|
||||
'Main Chat Model': '主对话模型',
|
||||
'Primary assistant for conversations, reasoning, and tool calls.': '用于对话、推理与工具调用的核心模型。',
|
||||
'Handles multimodal perception such as image understanding.': '负责多模态感知与图像理解。',
|
||||
'Transforms content into dense vectors for search and retrieval.': '将内容向量化以驱动搜索与检索。',
|
||||
'Optimises ranking quality for search candidates.': '重新排序候选结果,提升检索相关性。',
|
||||
'Covers text-to-speech and speech understanding scenarios.': '覆盖文本转语音与语音理解场景。',
|
||||
'Supports function calling, orchestration, and automation.': '支持函数调用、编排与自动化。',
|
||||
'Select a model': '选择模型',
|
||||
'Template': '模板',
|
||||
'Select a template': '选择模板',
|
||||
'Display Name': '显示名称',
|
||||
'Enter name': '请输入名称',
|
||||
'Identifier': '标识符',
|
||||
'Enter identifier': '请输入标识符',
|
||||
'Only lowercase letters, numbers, dash, dot and underscore are allowed': '仅允许小写字母、数字、连字符、点和下划线',
|
||||
'API Format': 'API 格式',
|
||||
'Base URL': '基础 URL',
|
||||
'Enter base url': '请输入基础 URL',
|
||||
'Optional, can also be provided per request': '可选,也可在请求时提供',
|
||||
'Model Identifier': '模型标识',
|
||||
'Enter model identifier': '请输入模型标识',
|
||||
'Description': '描述',
|
||||
'Capabilities': '能力标签',
|
||||
'Context Window': '上下文窗口',
|
||||
'Embedding Dimensions': '向量维度',
|
||||
'Price /1K input tokens': '价格 /1K 输入 token',
|
||||
'Price /1K output tokens': '价格 /1K 输出 token',
|
||||
|
||||
// Adapters
|
||||
'Missing required config:': '缺少必填配置:',
|
||||
|
||||
Reference in New Issue
Block a user