betalgo / openai

OpenAI .NET sdk - Azure OpenAI, ChatGPT, Whisper, and DALL-E
https://betalgo.github.io/openai/
MIT License
2.85k stars 513 forks source link

ResponseFormat wrongfully serialized #452

Closed LucasEDT closed 7 months ago

LucasEDT commented 7 months ago

Describe the bug On AudioCreateSpeechRequest.cs line 31

image

while on the api we have

image

It will silently give you an MP3 file back instead of any other type you request. Which super sucks..

Changing to this fix the issue:

image

I was going to open a PR but I don't have permission :-)

Please fix it soon! thanks!

kayhantolga commented 7 months ago

Thank you for reporting. A fix is ready for the next version, and there are no special permission restrictions. You should be able to create a pull request (PR).