File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ If you or your business relies on this package, it's important to support the de
46
46
- [ Vector Stores Files Resource] ( #vector-store-files-resource )
47
47
- [ Vector Stores File Batches Resource] ( #vector-store-file-batches-resource )
48
48
- [ Batches Resource] ( #batches-resource )
49
+ - [ Realtime Ephemeral Keys] ( #realtime-ephemeral-keys )
49
50
- [ FineTunes Resource (deprecated)] ( #finetunes-resource-deprecated )
50
51
- [ Edits Resource (deprecated)] ( #edits-resource-deprecated )
51
52
- [ Meta Information] ( #meta-information )
@@ -2274,6 +2275,30 @@ foreach ($response->data as $result) {
2274
2275
$response->toArray(); // ['object' => 'list', ...]]
2275
2276
```
2276
2277
2278
+ ### Realtime Ephemeral Keys
2279
+
2280
+ #### ` token `
2281
+
2282
+ Create an ephemeral API token for real time sessions.
2283
+
2284
+ ``` php
2285
+ $response = $client->realtime()->token();
2286
+
2287
+ $response->clientSecret->value // 'ek-1234567890abcdefg'
2288
+ $response->clientSecret->expiresAt // 1717703267
2289
+ ```
2290
+
2291
+ #### ` transcribeToken `
2292
+
2293
+ Create an ephemeral API token for real time transcription sessions.
2294
+
2295
+ ``` php
2296
+ $response = $client->realtime()->transcribeToken();
2297
+
2298
+ $response->clientSecret->value // 'et-1234567890abcdefg'
2299
+ $response->clientSecret->expiresAt // 1717703267
2300
+ ```
2301
+
2277
2302
### ` Edits ` Resource (deprecated)
2278
2303
2279
2304
> [ !WARNING]
You can’t perform that action at this time.
0 commit comments