Open Tsun4mii opened 3 weeks ago
When creating response in chat completions using gpt-4o-audio-preview-2024-10-01 with funtion getting 500 error
const payloadMessages: ChatCompletionMessageParam[] = [{ role: 'system', content: prompt.toString() }, ...messages]; const result = await this.client.chat.completions.create({ model: 'gpt-4o-audio-preview-2024-10-01', modalities: ['text', 'audio'], audio: { voice: 'alloy', format: 'wav' }, tools: [ { type: 'function', function: { name: 'redirect_to_operator', description: 'testing', }, }, ], messages: payloadMessages, });
Ubuntu 22.04.5 LTS
Node v22.0.0
4.69.0
Confirm this is a Node library issue and not an underlying OpenAI API issue
Describe the bug
When creating response in chat completions using gpt-4o-audio-preview-2024-10-01 with funtion getting 500 error
To Reproduce
Code snippets
OS
Ubuntu 22.04.5 LTS
Node version
Node v22.0.0
Library version
4.69.0