Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ If you or your business relies on this package, it's important to support the de
- [Vector Stores Files Resource](#vector-store-files-resource)
- [Vector Stores File Batches Resource](#vector-store-file-batches-resource)
- [Batches Resource](#batches-resource)
- [Realtime Ephemeral Keys](#realtime-ephemeral-keys)
- [FineTunes Resource (deprecated)](#finetunes-resource-deprecated)
- [Edits Resource (deprecated)](#edits-resource-deprecated)
- [Meta Information](#meta-information)
Expand Down Expand Up @@ -2274,6 +2275,30 @@ foreach ($response->data as $result) {
$response->toArray(); // ['object' => 'list', ...]]
```

### Realtime Ephemeral Keys

#### `token`

Create an ephemeral API token for real time sessions.

```php
$response = $client->realtime()->token();

$response->clientSecret->value // 'ek-1234567890abcdefg'
$response->clientSecret->expiresAt // 1717703267
```

#### `transcribeToken`

Create an ephemeral API token for real time transcription sessions.

```php
$response = $client->realtime()->transcribeToken();

$response->clientSecret->value // 'et-1234567890abcdefg'
$response->clientSecret->expiresAt // 1717703267
```

### `Edits` Resource (deprecated)

> [!WARNING]
Expand Down