Skip to content

Chat Completion API Rejects Audio Input #2454

@tpuhov-sd

Description

@tpuhov-sd

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

OpenAI supports audio input support via the chat completions API. However, the Python library throws the following error when trying to use the input_audio type.

content blocks are expected to be either text or image_url type

To Reproduce

Try to hit the chat completions API with audio input

Code snippets

OS

Windows

Python version

3.12.7

Library version

openai v1.93.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions