fixed
This commit is contained in:
parent
35b03e4cb3
commit
02e326f87f
1 changed files with 6 additions and 3 deletions
|
|
@ -208,8 +208,8 @@ export namespace Session {
|
||||||
|
|
||||||
if (msgs.length === 0) {
|
if (msgs.length === 0) {
|
||||||
const app = App.info()
|
const app = App.info()
|
||||||
if (input.providerID === "anthropic")
|
if (input.providerID === "anthropic") {
|
||||||
msgs.push({
|
const claude: Message.Info = {
|
||||||
id: Identifier.ascending("message"),
|
id: Identifier.ascending("message"),
|
||||||
role: "system",
|
role: "system",
|
||||||
parts: [
|
parts: [
|
||||||
|
|
@ -225,7 +225,10 @@ export namespace Session {
|
||||||
},
|
},
|
||||||
tool: {},
|
tool: {},
|
||||||
},
|
},
|
||||||
})
|
}
|
||||||
|
await updateMessage(claude)
|
||||||
|
msgs.push(claude)
|
||||||
|
}
|
||||||
const system: Message.Info = {
|
const system: Message.Info = {
|
||||||
id: Identifier.ascending("message"),
|
id: Identifier.ascending("message"),
|
||||||
role: "system",
|
role: "system",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue