import { useTranslation } from 'react-i18next' import CodeEditor from '@/components/CodeEditor' // Recommended models: lightweight with excellent tool call capabilities const MODELS = { recommended: [ 'gpt-4.1-mini', 'claude-haiku-4.5', 'gemini-3-flash', 'deepseek-3.2', 'gpt-5.2', 'qwen-3-max', ], verified: [ 'qwen-3-plus', 'gpt-4.1', 'gpt-5', 'gpt-5-mini', 'grok-4', 'grok-code-fast', 'claude-sonnet-3.5', 'claude-sonnet-4.5', 'claude-opus-4.5', 'gemini-2.5', 'gemini-3-pro', ], } export default function Models() { const { i18n } = useTranslation() const isZh = i18n.language === 'zh-CN' const allModels = [...MODELS.recommended, ...MODELS.verified] return (
{isZh ? '当前支持符合 OpenAI 接口规范且支持 tool call 的模型,包括公有云服务和私有部署方案。' : 'Supports models that comply with OpenAI API specification and support tool calls, including public cloud services and private deployments.'}
{/* Models Section */}{isZh ? '推荐使用 ToolCall 能力强的轻量级模型。' : 'Recommended: Lightweight models with strong ToolCall capabilities.'}
⭐ baseline models
{isZh ? '⚠️ 永远不要把真实的 LLM API Key 发布到前端代码' : '⚠️ Never commit real LLM API Keys to your frontend code'}
{isZh ? '在后端搭建一个 LLM 流量转发接口,该接口使用与你网站上其他接口相同的鉴权方式,例如:' : 'Set up a backend LLM proxy endpoint that uses the same authentication method as other APIs in your website, such as:'}