fix(llms): pin OpenCode Go base URL to the shared inference root (#15154)

models.dev now lists https://opencode.ai/inference/go/openai/v1, which
only serves OpenAI routes: /messages returns 404 there, so every
Anthropic-protocol OpenCode Go model would fail after a catalog regen.
Routing appends per-model protocol endpoints to the base URL, so keep
the shared /inference/go/v1 root that serves chat, responses and
messages.
This commit is contained in:
Saoud Rizwan
2026-10-16 19:36:11 -07:00
committed by GitHub
parent b549ceb4bb
commit 729d6c224e
+7 -1
View File
@@ -778,7 +778,13 @@ const OPENAI_COMPATIBLE_SPEC_OVERRIDES: BuiltinSpecOverride[] = [
{
id: "opencode-go",
docsUrl: "https://opencode.ai/docs/go/",
defaults: { headers: { "User-Agent": "Cline/SDK" } },
defaults: {
// models.dev lists the OpenAI-only path (/inference/go/openai/v1),
// which 404s on /messages. Routing appends per-model protocol
// endpoints, so pin the shared root that serves all of them.
baseUrl: "https://opencode.ai/inference/go/v1",
headers: { "User-Agent": "Cline/SDK" },
},
metadata: {
routing: { modelApiProtocol: true },
stickySession: {