mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 03:15:11 +00:00
fixed
This commit is contained in:
@@ -38,6 +38,7 @@ export namespace LLM {
|
||||
.tag("modelID", input.model.id)
|
||||
.tag("sessionID", input.sessionID)
|
||||
.tag("small", (input.small ?? false).toString())
|
||||
.tag("agent", input.agent.name)
|
||||
l.info("stream", {
|
||||
modelID: input.model.id,
|
||||
providerID: input.model.providerID,
|
||||
@@ -46,11 +47,11 @@ export namespace LLM {
|
||||
|
||||
const [first, ...rest] = [
|
||||
...SystemPrompt.header(input.model.providerID),
|
||||
...(input.agent.prompt ?? SystemPrompt.provider(input.model)),
|
||||
...(input.agent.prompt ? [input.agent.prompt] : SystemPrompt.provider(input.model)),
|
||||
...input.system,
|
||||
...(input.user.system ? [input.user.system] : []),
|
||||
]
|
||||
const system = [first, rest.join("\n")]
|
||||
const system = [first, rest.join("\n")].filter((x) => x)
|
||||
|
||||
const params = await Plugin.trigger(
|
||||
"chat.params",
|
||||
|
||||
Reference in New Issue
Block a user