From b4569fa6a9fee41a0b9d7ca151985e40ffa538d5 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Tue, 17 Mar 2026 14:50:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=8E=A5=E5=85=A5=20LiteLLM=20?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E5=B9=B6=E6=9B=B4=E6=96=B0=E8=BD=BB=E9=87=8F?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oh-my-opencode.json | 6 +++--- opencode.json | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/oh-my-opencode.json b/oh-my-opencode.json index a04a57a..5ba78ca 100644 --- a/oh-my-opencode.json +++ b/oh-my-opencode.json @@ -4,8 +4,8 @@ "sisyphus": { "model": "openai/gpt-5.4", "variant": "medium" }, "hephaestus": { "model": "openai/gpt-5.3-codex", "variant": "medium" }, "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, - "librarian": { "model": "openai/gpt-5.1-codex-mini" }, - "explore": { "model": "openai/gpt-5.1-codex-mini" }, + "librarian": { "model": "litellm/minimax-m2.5" }, + "explore": { "model": "litellm/minimax-m2.5" }, "multimodal-looker": { "model": "openai/gpt-5.4", "variant": "medium" }, "prometheus": { "model": "openai/gpt-5.4", "variant": "high" }, "metis": { "model": "openai/gpt-5.4", "variant": "high" }, @@ -18,7 +18,7 @@ "ultrabrain": { "model": "openai/gpt-5.3-codex", "variant": "xhigh" }, "deep": { "model": "openai/gpt-5.3-codex", "variant": "medium" }, "artistry": { "model": "openai/gpt-5.4", "variant": "medium" }, - "quick": { "model": "openai/gpt-5.1-codex-mini" }, + "quick": { "model": "litellm/minimax-m2.5" }, "unspecified-low": { "model": "openai/gpt-5.4", "variant": "medium" }, "unspecified-high": { "model": "openai/gpt-5.4", "variant": "high" }, "writing": { "model": "openai/gpt-5.4", "variant": "medium" } diff --git a/opencode.json b/opencode.json index 66f9837..0518a7d 100644 --- a/opencode.json +++ b/opencode.json @@ -34,6 +34,34 @@ "limit": { "context": 400000, "input": 272000, "output": 128000 } } } + }, + "litellm": { + "name": "LiteLLM", + "npm": "@ai-sdk/openai-compatible", + "options": { + "baseURL": "{env:LITELLM_BASE_URL}/v1", + "apiKey": "{env:LITELLM_API_KEY}" + }, + "models": { + "glm-5": { + "name": "GLM-5", + "reasoning": true, + "modalities": { "input": ["text"], "output": ["text"] }, + "limit": { "context": 204800, "output": 131072 } + }, + "kimi-k2.5": { + "name": "Kimi K2.5", + "reasoning": true, + "modalities": { "input": ["text", "image", "video"], "output": ["text"] }, + "limit": { "context": 262144, "output": 262144 } + }, + "minimax-m2.5": { + "name": "MiniMax M2.5", + "reasoning": true, + "modalities": { "input": ["text"], "output": ["text"] }, + "limit": { "context": 204800, "output": 131072 } + } + } } } }