新增 MiMo (小米) LLM Provider 适配器,支持 mimo-v2.5-pro 和 mimo-v2.5 两个文本模型,复用 OpenAI 兼容 SSE 流式解析,支持 Thinking 模式和 Function Calling。同步校准全量 docs 文档与 README 使其与实际代码一致。 主要变更: - 新增 mimo.adapter.ts 适配器(SSE + thinking.type + max_completion_tokens) - 修复 thinking 逻辑 bug:禁用思考时未传 temperature/top_p - 补全 sse-stream.ts 的 MiMo 缓存字段映射(prompt_tokens_details.cached_tokens) - 补全 sse-stream.ts 的 finish_reason 映射(repetition_truncation) - 注册 MiMo 适配器到 adapters/index.ts、main.ts 工厂 - handlers.ts 添加 mimo.contextWindow 热重载触发 - database.service.ts seed 添加 mimo 默认配置 - SettingsModal/OnboardingWizard/Header 添加 MiMo Provider UI - constants.ts PROVIDER_LABELS 添加 mimo - .env.example 添加 MIMO_API_KEY/MIMO_BASE_URL - 反向修改 4 个 docs HTML 设计文档(工具数量/版本日期/适配器列表/数据库表) - 反向修改 Agent网络工具通用设计-v2.md 附录 B 文件索引 - 完全重写 README.md(v0.3.4、27 工具、4 适配器、9 表)
21 lines
484 B
Bash
21 lines
484 B
Bash
# Metona Environment Variables
|
|
# Copy this file to .env and fill in your API keys
|
|
|
|
# DeepSeek API
|
|
DEEPSEEK_API_KEY=your_deepseek_api_key_here
|
|
DEEPSEEK_BASE_URL=https://api.deepseek.com
|
|
|
|
# Agnes AI API
|
|
AGNES_API_KEY=your_agnes_api_key_here
|
|
AGNES_BASE_URL=https://apihub.agnes-ai.com/v1
|
|
|
|
# Xiaomi MiMo API
|
|
MIMO_API_KEY=your_mimo_api_key_here
|
|
MIMO_BASE_URL=https://api.xiaomimimo.com/v1
|
|
|
|
# Ollama API (local)
|
|
OLLAMA_BASE_URL=http://localhost:11434
|
|
|
|
# App
|
|
VITE_APP_TITLE=MetonaAI Desktop
|