fix: Cloudflare Workers AI message handling
This commit is contained in:
parent
95f663b98f
commit
7eff25595c
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ export default class Cloudflare extends BaseLLM {
|
|||
if (value.choices?.[0]?.delta?.content) {
|
||||
yield {
|
||||
role: "assistant",
|
||||
content: value.choices[0].delta,
|
||||
content: value.choices[0].delta.content,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue