From 5083b2bb233f37263103e3f7bc346ada8e2f921f Mon Sep 17 00:00:00 2001 From: Victor Navarro Date: Mon, 13 Jul 2026 13:57:44 +0000 Subject: [PATCH] fix(opencode): route provider through console --- providers/opencode/provider.toml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/providers/opencode/provider.toml b/providers/opencode/provider.toml index b052bdb7c1..760de03c64 100644 --- a/providers/opencode/provider.toml +++ b/providers/opencode/provider.toml @@ -1,12 +1,5 @@ name = "OpenCode Zen" env = ["OPENCODE_API_KEY"] npm = "@ai-sdk/openai-compatible" -# Raw HTTP endpoint map (source accessed 2026-06-25): Zen uses POST -# `/zen/v1/responses` for OpenAI, `/zen/v1/messages` for Anthropic and Qwen, -# `/zen/v1/models/{model}` for Gemini, and `/zen/v1/chat/completions` for the -# listed compatible models. Zen does not document reasoning request fields, -# values, bounds, translation, or passthrough; upstream-native formats are not -# independently guaranteed by this endpoint table. -# https://opencode.ai/docs/zen#endpoints -api = "https://opencode.ai/zen/v1" +api = "https://console.opencode.ai/inference/openai/v1" doc = "https://opencode.ai/docs/zen"