You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const openai =newAzureOpenAI({ azureADTokenProvider, apiVersion: "<The API version, e.g. 2024-10-01-preview>" });
503
503
504
504
const result =awaitopenai.chat.completions.create({
505
505
model: 'gpt-4o',
@@ -509,6 +509,26 @@ const result = await openai.chat.completions.create({
509
509
console.log(result.choices[0]!.message?.content);
510
510
```
511
511
512
+
### Realtime API
513
+
This SDK provides real-time streaming capabilities for Azure OpenAI through the `OpenAIRealtimeWS` and `OpenAIRealtimeWebSocket` clients described previously.
514
+
515
+
To utilize the real-time features, begin by creating a fully configured `AzureOpenAI` client and passing it into either `OpenAIRealtimeWS.azure` or `OpenAIRealtimeWebSocket.azure`. For example:
0 commit comments