2026-06-13 21:08:37 +07:00
|
|
|
export default {
|
2026-06-14 14:32:59 +07:00
|
|
|
id: "opencode",
|
2026-06-15 11:38:43 +07:00
|
|
|
priority: 40,
|
2026-06-14 18:49:38 +07:00
|
|
|
hasFree: true,
|
2026-06-14 14:32:59 +07:00
|
|
|
alias: "oc",
|
|
|
|
|
uiAlias: "oc",
|
2026-06-14 13:15:48 +07:00
|
|
|
display: {
|
2026-06-14 14:32:59 +07:00
|
|
|
name: "OpenCode Free",
|
|
|
|
|
icon: "terminal",
|
|
|
|
|
color: "#E87040",
|
|
|
|
|
textIcon: "OC",
|
2026-06-14 13:15:48 +07:00
|
|
|
},
|
|
|
|
|
category: "free",
|
|
|
|
|
noAuth: true,
|
2026-06-14 14:32:59 +07:00
|
|
|
transport: {
|
|
|
|
|
baseUrl: "https://opencode.ai",
|
|
|
|
|
headers: {
|
|
|
|
|
"x-opencode-client": "desktop",
|
2026-06-13 21:08:37 +07:00
|
|
|
},
|
2026-09-18 17:32:52 +07:00
|
|
|
forceStream: true,
|
2026-06-14 13:15:48 +07:00
|
|
|
noAuth: true,
|
2026-09-17 18:19:38 +07:00
|
|
|
quirks: {
|
|
|
|
|
forceAutoToolChoiceModels: ["muse-spark-1.3-contributor-free"],
|
|
|
|
|
},
|
2026-06-14 13:15:48 +07:00
|
|
|
},
|
2026-08-28 11:32:56 +07:00
|
|
|
models: [
|
2026-09-17 18:01:33 +07:00
|
|
|
// Endpoint formats differ per model, so declare non-chat models explicitly.
|
2026-08-28 11:32:56 +07:00
|
|
|
{ id: "muse-spark-1.2-contributor-free", name: "Muse Spark 1.2 Contributor Free", targetFormat: "openai-responses" },
|
2026-09-03 09:23:24 +07:00
|
|
|
{ id: "muse-spark-1.3-contributor-free", name: "Muse Spark 1.3 Contributor Free", targetFormat: "openai-responses" },
|
2026-09-17 18:01:33 +07:00
|
|
|
{ id: "union-alpha", name: "Union Alpha Free", targetFormat: "claude" },
|
2026-08-28 11:32:56 +07:00
|
|
|
],
|
2026-06-14 14:32:59 +07:00
|
|
|
modelsFetcher: { url: "https://opencode.ai/zen/v1/models", type: "opencode-free" },
|
|
|
|
|
passthroughModels: true,
|
2026-06-13 21:08:37 +07:00
|
|
|
};
|