mirror of
https://github.com/cline/cline.git
synced 2026-10-24 02:02:27 +08:00
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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user