ChatResponseExtensions.ToChatResponse; when no messageId is present #6731
Unanswered
flintlouis
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Can you give an example of the sequence you're getting with Ollama? Would it be sufficient to check |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When using the
ChatResponseExtensions.ToChatResponseextension and there is no MessageId present (for example with the Ollama implementation), the ChatResponseUpdate.AIContent will be all put into one ChatResponse, even if there are different roles set on the ChatResponseUpdate. Is it not an idea to also check ifresponse.Messages[^1].Role != update.Rolefor isNewMessage = true?Beta Was this translation helpful? Give feedback.
All reactions