Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatMessage Content bugs introduced on 1.9 version #196

Open
jeffdapaz opened this issue Feb 21, 2024 · 0 comments
Open

ChatMessage Content bugs introduced on 1.9 version #196

jeffdapaz opened this issue Feb 21, 2024 · 0 comments

Comments

@jeffdapaz
Copy link

Hi,

Start from version 1.9, the property from ChatMessage class was modified from "string Content" to "IList ContentItems", but this change was introduced some bugs.

Looking on OpenAI API Reference, it's possible to see that "content" need to be a plain text, not an array:

image

But strangelly the requests are working with OpenAI and Azure. But if you try consume a local LLM based on OpenAI API pattern, overriding the base URL, the requests will not work.

Another problem that I faced it's particullary with Azure.

In some requests I am receiveing something like this as response:

data: {"id":"chatcmpl-8ujtoBAFitfLO0nl5Eenrep","object":"chat.completion.chunk","created":1708533496,"model":"gpt-35-turbo","choices":[{"finish_reason":"stop","index":0,"delta":{"content":null}}]}

Note that the "content" is null. When Azure returns this the exception "Object Not Referenced" was launched by the package at OpenAI_API.Chat.ChatMessage.set_ContentItems(IList`1 value).

Rollback the package to the 1.8 version on my project resolved all these problems, but I am creating this issue to notify you about them.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant