Merge pull request #3321 from deloreyj/cf-updates

fix: Cloudflare Workers AI message handling
This commit is contained in:
Nate Sesti 2024-12-11 11:21:58 -08:00 • committed by GitHub
commit 0e699e5946
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,
};
}
}