From 7da2dfe167b5e08c99480a42ff41a65fa0e7bd24 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Sat, 28 Mar 2026 14:28:02 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=8E=A5=E5=85=A5=20AI=20Gateway=20?= =?UTF-8?q?=E5=B9=B6=E5=88=87=E6=8D=A2=E8=BD=BB=E9=87=8F=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E8=87=B3=20MiniMax=20M2.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 4 ++-- oh-my-opencode.jsonc | 6 +++--- opencode.jsonc | 22 +++++++++++++++++++--- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/.env.example b/.env.example index eccb477..273d30c 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,6 @@ # Provider -LITELLM_BASE_URL=https://ai.furtherverse.com -LITELLM_API_KEY= +AI_GATEWAY_BASE_URL=https://ai.furtherverse.com +AI_GATEWAY_API_KEY= # MCP EXA_API_KEY= diff --git a/oh-my-opencode.jsonc b/oh-my-opencode.jsonc index 1e41268..d61c756 100644 --- a/oh-my-opencode.jsonc +++ b/oh-my-opencode.jsonc @@ -4,8 +4,8 @@ "sisyphus": { "model": "openai/gpt-5.4", "variant": "medium" }, "hephaestus": { "model": "openai/gpt-5.4", "variant": "medium" }, "oracle": { "model": "openai/gpt-5.4", "variant": "high" }, - "librarian": { "model": "openai/gpt-5.4-mini" }, - "explore": { "model": "openai/gpt-5.4-mini" }, + "librarian": { "model": "ai-gateway/minimax-m2.5" }, + "explore": { "model": "ai-gateway/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.4", "variant": "xhigh" }, "deep": { "model": "openai/gpt-5.3-codex", "variant": "medium" }, "artistry": { "model": "openai/gpt-5.4", "variant": "medium" }, - "quick": { "model": "openai/gpt-5.4-mini" }, + "quick": { "model": "ai-gateway/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.jsonc b/opencode.jsonc index 5be8dff..e6419f5 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -3,13 +3,13 @@ "plugin": ["oh-my-opencode@latest"], "autoupdate": false, "model": "openai/gpt-5.4", - "small_model": "openai/gpt-5.4-mini", + "small_model": "ai-gateway/minimax-m2.5", "provider": { "openai": { "npm": "@ai-sdk/openai", "options": { - "baseURL": "{env:LITELLM_BASE_URL}/v1", - "apiKey": "{env:LITELLM_API_KEY}" + "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1", + "apiKey": "{env:AI_GATEWAY_API_KEY}" }, "models": { "gpt-5.4": { @@ -31,6 +31,22 @@ "limit": { "context": 400000, "input": 272000, "output": 128000 } } } + }, + "ai-gateway": { + "name": "AI Gateway", + "npm": "@ai-sdk/openai-compatible", + "options": { + "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1", + "apiKey": "{env:AI_GATEWAY_API_KEY}" + }, + "models": { + "minimax-m2.5": { + "name": "MiniMax M2.5", + "reasoning": true, + "modalities": { "input": ["text"], "output": ["text"] }, + "limit": { "context": 204800, "output": 131072 } + } + } } }, "permission": {