Skip to content

Populate the audio stream with items added to the conversation #2262

@daltskin

Description

@daltskin

Confirm this is a feature request for the Python library and not the underlying OpenAI API.

  • This is a feature request for the Python library

Describe the feature or improvement you're requesting

When using the the realtime api and a function call has been recognized and processed you are unable to send the result down the audio stream. This is a current limitation highlighted in the api documentation:

Add a new Item to the Conversation's context, including messages, function

When sending the response it gets detected in the history, but not send down the audio stream.

  await connection.conversation.item.create(
      item={
          "type": "function_call_output",
          "call_id": callid,
          "output": json.dumps(func_call_response)
      }
  )

It would be great to have this put on the audio message. One workaround atm is to ask the assistant to repeat itself once it's finished processing, are there any better alternatives?

Thanks

Additional context

No response

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