Declares forceStream: true so chatCore properly converts upstream forced-stream responses to JSON for non-streaming callers. Co-authored-by: anojndr <anojndr@gmail.com> Co-authored-by: TEGAR-SRC <tegararrahman17@gmail.com> Co-authored-by: yxxrn <yxxrn@users.noreply.github.com> Co-Authored-By: Claude Code <noreply@anthropic.com>
35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
JavaScript
export default {
|
|
id: "opencode",
|
|
priority: 40,
|
|
hasFree: true,
|
|
alias: "oc",
|
|
uiAlias: "oc",
|
|
display: {
|
|
name: "OpenCode Free",
|
|
icon: "terminal",
|
|
color: "#E87040",
|
|
textIcon: "OC",
|
|
},
|
|
category: "free",
|
|
noAuth: true,
|
|
transport: {
|
|
baseUrl: "https://opencode.ai",
|
|
headers: {
|
|
"x-opencode-client": "desktop",
|
|
},
|
|
forceStream: true,
|
|
noAuth: true,
|
|
quirks: {
|
|
forceAutoToolChoiceModels: ["muse-spark-1.3-contributor-free"],
|
|
},
|
|
},
|
|
models: [
|
|
// Endpoint formats differ per model, so declare non-chat models explicitly.
|
|
{ id: "muse-spark-1.2-contributor-free", name: "Muse Spark 1.2 Contributor Free", targetFormat: "openai-responses" },
|
|
{ id: "muse-spark-1.3-contributor-free", name: "Muse Spark 1.3 Contributor Free", targetFormat: "openai-responses" },
|
|
{ id: "union-alpha", name: "Union Alpha Free", targetFormat: "claude" },
|
|
],
|
|
modelsFetcher: { url: "https://opencode.ai/zen/v1/models", type: "opencode-free" },
|
|
passthroughModels: true,
|
|
};
|