Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

500 Error on completions call using gpt-4o-audio-preview-* model #1158

Open
1 task done
Tsun4mii opened this issue Oct 31, 2024 · 0 comments
Open
1 task done

500 Error on completions call using gpt-4o-audio-preview-* model #1158

Tsun4mii opened this issue Oct 31, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Tsun4mii
Copy link

Confirm this is a Node library issue and not an underlying OpenAI API issue

  • This is an issue with the Node library

Describe the bug

When creating response in chat completions using gpt-4o-audio-preview-2024-10-01 with funtion getting 500 error

To Reproduce

  1. Install openai package in version 4.69.0
  2. Use openai functions

Code snippets

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,
    });

OS

Ubuntu 22.04.5 LTS

Node version

Node v22.0.0

Library version

4.69.0

@Tsun4mii Tsun4mii added the bug Something isn't working label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant