Skip to content

[OpenAI] Fixed ChatRequestUserMessage serialization and deserialization bug - #40687

Merged
mssfang merged 12 commits into
Azure:mainfrom
mssfang:OpenAI-ChatRequestUserMessage-bugs
Jun 29, 2024
Merged

[OpenAI] Fixed ChatRequestUserMessage serialization and deserialization bug#40687
mssfang merged 12 commits into
Azure:mainfrom
mssfang:OpenAI-ChatRequestUserMessage-bugs

Conversation

@mssfang

@mssfang mssfang commented Jun 18, 2024

Copy link
Copy Markdown
Contributor

fixes: #40481
fixes: #40900
fixes: #40653

ChatRequestUserMessage's constructor can take String, BinaryData, List or ChatMessageContentItem[] type, we need to serialize and deserialize the content property correctly in the model.

fixes: #40760 (typo)

@mssfang mssfang self-assigned this Jun 18, 2024
@mssfang mssfang added the Client This issue points to a problem in the data-plane of the library. label Jun 18, 2024
@mssfang
mssfang marked this pull request as ready for review June 20, 2024 00:42
@mssfang
mssfang requested review from alzimmermsft and srnagar June 20, 2024 00:43
@azure-sdk

Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@piotrooo

Copy link
Copy Markdown

@mssfang any news about this? 1.0.0-beta.9 broke response deserialization.

@mssfang
mssfang requested a review from alzimmermsft June 25, 2024 22:53
@ashishs

ashishs commented Jun 28, 2024

Copy link
Copy Markdown

@mssfang This is impactin the accuracy of the prompts, and we are seeing way worse results in the responses. The current release is not useable in production and we would request an early fix to this issue.

@mssfang
mssfang merged commit fb29b0d into Azure:main Jun 29, 2024
@mssfang
mssfang deleted the OpenAI-ChatRequestUserMessage-bugs branch June 29, 2024 01:14
@jdubois

jdubois commented Jul 1, 2024

Copy link
Copy Markdown

I'm also experiencing the same issue, and I can reproduce it - I'll add a test for this in @langchain4j and I'll link it here, if you want to have this in your test suite too.

@mssfang

mssfang commented Jul 2, 2024

Copy link
Copy Markdown
Contributor Author

Hi all

beta.10 is out in maven now:

https://repo1.maven.org/maven2/com/azure/azure-ai-openai/1.0.0-beta.10/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue points to a problem in the data-plane of the library. OpenAI

Projects

None yet

7 participants