公众号验证码功能完成 yeah!!!
This commit is contained in:
12
node_modules/openai/README.md
generated
vendored
12
node_modules/openai/README.md
generated
vendored
@@ -264,14 +264,14 @@ const { data: stream, request_id } = await openai.chat.completions
|
||||
.withResponse();
|
||||
```
|
||||
|
||||
## Realtime API Beta
|
||||
## Realtime API
|
||||
|
||||
The Realtime API enables you to build low-latency, multi-modal conversational experiences. It currently supports text and audio as both input and output, as well as [function calling](https://platform.openai.com/docs/guides/function-calling) through a `WebSocket` connection.
|
||||
|
||||
```ts
|
||||
import { OpenAIRealtimeWebSocket } from 'openai/beta/realtime/websocket';
|
||||
import { OpenAIRealtimeWebSocket } from 'openai/realtime/websocket';
|
||||
|
||||
const rt = new OpenAIRealtimeWebSocket({ model: 'gpt-4o-realtime-preview-2024-12-17' });
|
||||
const rt = new OpenAIRealtimeWebSocket({ model: 'gpt-realtime' });
|
||||
|
||||
rt.on('response.text.delta', (event) => process.stdout.write(event.delta));
|
||||
```
|
||||
@@ -401,14 +401,14 @@ while (page.hasNextPage()) {
|
||||
}
|
||||
```
|
||||
|
||||
## Realtime API Beta
|
||||
## Realtime API
|
||||
|
||||
The Realtime API enables you to build low-latency, multi-modal conversational experiences. It currently supports text and audio as both input and output, as well as [function calling](https://platform.openai.com/docs/guides/function-calling) through a `WebSocket` connection.
|
||||
|
||||
```ts
|
||||
import { OpenAIRealtimeWebSocket } from 'openai/beta/realtime/websocket';
|
||||
import { OpenAIRealtimeWebSocket } from 'openai/realtime/websocket';
|
||||
|
||||
const rt = new OpenAIRealtimeWebSocket({ model: 'gpt-4o-realtime-preview-2024-12-17' });
|
||||
const rt = new OpenAIRealtimeWebSocket({ model: 'gpt-realtime' });
|
||||
|
||||
rt.on('response.text.delta', (event) => process.stdout.write(event.delta));
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user