公众号验证码功能完成 yeah!!!

This commit is contained in:
2025-11-21 15:33:03 +08:00
parent ad35173301
commit 6330f6faa1
614 changed files with 31574 additions and 4571 deletions

12
node_modules/openai/README.md generated vendored
View File

@@ -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));
```