mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-07 11:45:21 +00:00
Update examples/typescript-simplechat/client.ts
Co-authored-by: Bruce MacDonald <brucewmacdonald@gmail.com>
This commit is contained in:
parent
6cc823c9b5
commit
5344f886c8
@ -45,7 +45,7 @@ async function chat(messages: Message[]): Promise<Message> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return { role: "assistant", content: content.join("") };
|
return { role: "assistant", content: content };
|
||||||
}
|
}
|
||||||
|
|
||||||
async function askQuestion(): Promise<void> {
|
async function askQuestion(): Promise<void> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user