Skip to content

Commit 64d6386

Browse files
docs(realtime): fix curl example. Fixes #406
1 parent 3627b10 commit 64d6386

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/src/content/docs/guides/voice-agents/quickstart.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ import thinClientExample from '../../../../../../examples/docs/voice-agents/thin
5151
-H "Authorization: Bearer $OPENAI_API_KEY" \
5252
-H "Content-Type: application/json" \
5353
-d '{
54-
"type": "realtime",
55-
"model": "gpt-realtime"
54+
"session": {
55+
"type": "realtime",
56+
"model": "gpt-realtime"
57+
}
5658
}'
5759
```
5860

docs/src/content/docs/ja/guides/voice-agents/quickstart.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ import thinClientExample from '../../../../../../../examples/docs/voice-agents/t
5151
-H "Authorization: Bearer $OPENAI_API_KEY" \
5252
-H "Content-Type: application/json" \
5353
-d '{
54-
"type": "realtime",
55-
"model": "gpt-realtime"
54+
"session": {
55+
"type": "realtime",
56+
"model": "gpt-realtime"
57+
}
5658
}'
5759
```
5860

0 commit comments

Comments
 (0)