From 561a3961c1b071c0fe4ecc3576f012d31f1dd374 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Wed, 22 Apr 2026 12:57:34 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=90=AF=E7=94=A8=20Google=20provider?= =?UTF-8?q?=20=E5=B9=B6=E5=88=87=E6=8D=A2=20Gemini=20=E8=87=B3=20google=20?= =?UTF-8?q?=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oh-my-openagent.claude.jsonc | 4 ++-- oh-my-openagent.gpt.jsonc | 4 ++-- opencode.jsonc | 42 ++++++++++++++++++------------------ 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/oh-my-openagent.claude.jsonc b/oh-my-openagent.claude.jsonc index a371219..bdc1830 100644 --- a/oh-my-openagent.claude.jsonc +++ b/oh-my-openagent.claude.jsonc @@ -14,10 +14,10 @@ "sisyphus-junior": { "model": "anthropic/claude-sonnet-4-6" } }, "categories": { - "visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, + "visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" }, "ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" }, "deep": { "model": "openai/gpt-5.4", "variant": "medium" }, - "artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, + "artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" }, "quick": { "model": "openai/gpt-5.4-mini" }, "unspecified-low": { "model": "anthropic/claude-sonnet-4-6" }, "unspecified-high": { "model": "anthropic/claude-opus-4-7", "variant": "max" }, diff --git a/oh-my-openagent.gpt.jsonc b/oh-my-openagent.gpt.jsonc index f2df123..830436a 100644 --- a/oh-my-openagent.gpt.jsonc +++ b/oh-my-openagent.gpt.jsonc @@ -14,10 +14,10 @@ "sisyphus-junior": { "model": "ai-gateway/kimi-k2p5-turbo" } }, "categories": { - "visual-engineering": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, + "visual-engineering": { "model": "google/gemini-3.1-pro-preview", "variant": "high" }, "ultrabrain": { "model": "openai/gpt-5.4", "variant": "xhigh" }, "deep": { "model": "openai/gpt-5.4", "variant": "medium" }, - "artistry": { "model": "ai-gateway/gemini-3.1-pro-preview", "variant": "high" }, + "artistry": { "model": "google/gemini-3.1-pro-preview", "variant": "high" }, "quick": { "model": "openai/gpt-5.4-mini" }, "unspecified-low": { "model": "gpt-5.3-codex", "variant": "medium" }, "unspecified-high": { "model": "openai/gpt-5.4", "variant": "high" }, diff --git a/opencode.jsonc b/opencode.jsonc index a1b59af..355056c 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -53,27 +53,27 @@ } } }, - // "google": { - // "npm": "@ai-sdk/google", - // "options": { - // "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta", - // "apiKey": "{env:AI_GATEWAY_API_KEY}" - // }, - // "models": { - // "gemini-3.1-pro-preview": { - // "name": "Gemini 3.1 Pro", - // "reasoning": true, - // "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] }, - // "limit": { "context": 1048576, "output": 65536 } - // }, - // "gemini-3-flash-preview": { - // "name": "Gemini 3 Flash", - // "reasoning": true, - // "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] }, - // "limit": { "context": 1048576, "output": 65536 } - // } - // } - // }, + "google": { + "npm": "@ai-sdk/google", + "options": { + "baseURL": "{env:AI_GATEWAY_BASE_URL}/v1beta", + "apiKey": "{env:AI_GATEWAY_API_KEY}" + }, + "models": { + "gemini-3.1-pro-preview": { + "name": "Gemini 3.1 Pro", + "reasoning": true, + "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] }, + "limit": { "context": 1048576, "output": 65536 } + }, + "gemini-3-flash-preview": { + "name": "Gemini 3 Flash", + "reasoning": true, + "modalities": { "input": ["text", "image", "video", "audio", "pdf"], "output": ["text"] }, + "limit": { "context": 1048576, "output": 65536 } + } + } + }, "ai-gateway": { "name": "AI Gateway", "npm": "@ai-sdk/openai-compatible",