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

Fix Deserialisation of AssistantStreamEventType.THREAD_MESSAGE_DELTA #426

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

av-runner
Copy link

Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue Fix #421

Describe your change

Make the content in the Message Delta Data a list and add needed data models for the possible objects within the list.

What problem is this fixing?

The content in the MessageDeltaData data class, within the Assistant Stream Event was a MessageContent, however the response from OpenAI is a list that might contain 4 different types of objects. I have added the missing data models.

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

Successfully merging this pull request may close these issues.

Deserialisation of AssistantStreamEventType.THREAD_MESSAGE_DELTA fails
1 participant