You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gpt-4o-audio-preview-2024-12-17 model allows for audio as an output modality. This doesn't seem to work.
To Reproduce
Steps to reproduce the behavior:
The code below doesn't have any Delta or any data in the chunks.
asyncTaskGPTSpeech(){varclient=newOpenAIClient();varspeaker=newSpeakerOutput();varchatRequest=newChatRequest([newMessage(Role.System,"Count from 1 to 10. Whisper please")],audioConfig:newAudioConfig(Voice.Nova),model:"gpt-4o-audio-preview-2024-12-17");// Doesn't seem to work... OpenAI Lib issue??awaitforeach(varchunkinclient.ChatEndpoint.StreamCompletionEnumerableAsync(chatRequest)){if(chunk.FirstChoice.Deltais not null)Console.Write(chunk.FirstChoice.Delta.Content);if(chunk.FirstChoice.Message?.AudioOutputis not null)Console.WriteLine(chunk.FirstChoice.Message.AudioOutput.Data.Length);}Console.WriteLine("Done.");Console.ReadKey();}
However, when not providing audio in the ChatRequest, this still works:
varchatRequest=newChatRequest([newMessage(Role.System,"Count from 1 to 10. Whisper please")]);
Expected behavior
Chunks should contain text and / or audio content when the model is generating audio
The text was updated successfully, but these errors were encountered:
Ended up being broken for both async and Enumerable streaming paths.
StephenHodgson
changed the title
StreamCompletionEnumerableAsync doesn't work with audio
Chat Streaming doesn't work with audio modalities
Jan 12, 2025
Bug Report
Overview
The
gpt-4o-audio-preview-2024-12-17
model allows for audio as an output modality. This doesn't seem to work.To Reproduce
Steps to reproduce the behavior:
The code below doesn't have any Delta or any data in the chunks.
However, when not providing audio in the ChatRequest, this still works:
Expected behavior
Chunks should contain text and / or audio content when the model is generating audio
The text was updated successfully, but these errors were encountered: