Skip to content

RealtimeAgent is not working with Azure OpenAI #214

@monuminu

Description

@monuminu

I am trying to use RealtimeAgent with Azure OpenAI .

const agent = new RealtimeAgent({
  name: "Voice Agent",
  model: new OpenAIChatCompletionsModel({
    client,
    model: process.env.AZURE_OPENAI_DEPLOYMENT || "gpt-4o-realtime-preview",
  }),
  instructions:
    "You are a voice agent that can answer questions and help with tasks.",
  handoffs: [weatherAgent],
});

What is the right way to call Azure OpenAI ? i am able to get the empirical tokens.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions