langchain-ai / react-voice-agent

177 stars 45 forks source link

Azure OpenAI is available? #6

Open Cloudinfo-Github opened 4 days ago

Cloudinfo-Github commented 4 days ago

Azure OpenAI can it be used in the same way? How to adjust the specific parameters?

newton2149 commented 1 day ago

Change the model name according to its deployment and change the model url to

The secure WebSocket (wss://) protocol

  1. Your Azure OpenAI resource endpoint hostname, e.g. my-aoai-resource.openai.azure.com
  2. The openai/realtime API path
  3. An api-version query string parameter for a supported API version -- initially, 2024-10-01-preview
  4. A deployment query string parameter with the name of your gpt-4o-realtime-preview model deployment

Model URL ` wss://my-eastus2-openai-resource.openai.azure.com/openai/realtime?api-version=2024-10-01-preview&deployment=gpt-4o-realtime-preview-1001&api-key=

`

zjzj165 commented 1 hour ago

could you say more about which file or line to change? really appreciate it!!!