sonic model
This commit is contained in:
parent
a2db58f125
commit
aa10f8a7f6
3 changed files with 14 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ await Promise.all([
|
||||||
fs.mkdir(Global.Path.bin, { recursive: true }),
|
fs.mkdir(Global.Path.bin, { recursive: true }),
|
||||||
])
|
])
|
||||||
|
|
||||||
const CACHE_VERSION = "8"
|
const CACHE_VERSION = "9"
|
||||||
|
|
||||||
const version = await Bun.file(path.join(Global.Path.cache, "version"))
|
const version = await Bun.file(path.join(Global.Path.cache, "version"))
|
||||||
.text()
|
.text()
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,12 @@ export namespace Provider {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async opencode() {
|
||||||
|
return {
|
||||||
|
autoload: true,
|
||||||
|
options: {},
|
||||||
|
}
|
||||||
|
},
|
||||||
openai: async () => {
|
openai: async () => {
|
||||||
return {
|
return {
|
||||||
autoload: false,
|
autoload: false,
|
||||||
|
|
|
||||||
|
|
@ -957,6 +957,13 @@ export namespace Session {
|
||||||
toolName: "invalid",
|
toolName: "invalid",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
headers:
|
||||||
|
input.providerID === "opencode"
|
||||||
|
? {
|
||||||
|
"x-opencode-session": input.sessionID,
|
||||||
|
"x-opencode-request": userMsg.id,
|
||||||
|
}
|
||||||
|
: undefined,
|
||||||
maxRetries: 3,
|
maxRetries: 3,
|
||||||
activeTools: Object.keys(tools).filter((x) => x !== "invalid"),
|
activeTools: Object.keys(tools).filter((x) => x !== "invalid"),
|
||||||
maxOutputTokens: outputLimit,
|
maxOutputTokens: outputLimit,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue