openai-client icon indicating copy to clipboard operation
openai-client copied to clipboard

In ChatCompletionChunkResponse, can object be changed to Option?

Open xgpxg opened this issue 1 year ago • 1 comments

https://github.com/tjardoo/openai-client/blob/5998f3b4589765bdf7003f5388fdf1091a70053d/openai_dive/src/v1/resources/chat.rs#L52

Some model responses do not fully comply with the OpenAI specification. For example, if this object is not returned, deserialization will fail. Can it be modified to be optional?

xgpxg avatar Apr 30 '25 11:04 xgpxg

Yes

tjardoo avatar Apr 30 '25 12:04 tjardoo