Examples and guides for using the OpenAI API
Minh/fix images (#2400)
Minhajul Hoque3c748633692e
diff --git a/examples/Realtime_eval_guide.ipynb b/examples/Realtime_eval_guide.ipynbindex 08e48c67..da5326fe 100644--- a/examples/Realtime_eval_guide.ipynb+++ b/examples/Realtime_eval_guide.ipynb@@ -16,7 +16,7 @@"<img\n"," src=\"../images/realtime_eval_page_01_image_01.png\"\n"," alt=\"Diagram from page 1\"\n",- " style=\"width:500px; height:auto; display:block; margin-left:auto; margin-right:auto;\"\n",+ " style=\"width:400px; height:auto; display:block; margin-left:auto; margin-right:auto;\"\n","/>\n"]},@@ -123,7 +123,7 @@"<img\n"," src=\"../images/realtime_eval_page_03_image_01.png\"\n"," alt=\"Diagram from page 3\"\n",- " style=\"width:670px; height:auto; display:block; margin-left:auto; margin-right:auto;\"\n",+ " style=\"width:500px; height:auto; display:block; margin-left:auto; margin-right:auto;\"\n","/>\n"]},@@ -252,7 +252,7 @@"- **Walk:** Record a human-mic version of “Change my reservation to 7pm,” then replay the same utterance with phone-bandwidth compression and light background noise; the system should still hear “7pm” (not “7” or “7:15”) and produce the same correct tool call.\n","- **Run:** Model simulating a user outputs “Change my reservation to 7pm,” then simulates realistic follow-ups (“It’s under Minhajul for tonight… actually make it 7:30… wait, tomorrow”) plus an injected tool error once; the agent should clarify only what’s missing, keep state consistent, recover cleanly, and end with a single correct update tool call reflecting the final expected outcome.\n","\n",- "You can find reference implementations that you can start from and adapt here [realtime eval start](./evals/realtime_evals)."+ "You can find reference implementations that you can start from and adapt here [realtime eval start](https://github.com/openai/openai-cookbook/tree/bde983138b99c3c477ac693e52b9df74a2960ca1/examples/evals/realtime_evals)."]},{@@ -317,7 +317,7 @@"<img\n"," src=\"../images/realtime_eval_page_07_image_02.png\"\n"," alt=\"Diagram from page 7\"\n",- " style=\"width:790px; height:auto; display:block; margin-left:auto; margin-right:auto;\"\n",+ " style=\"width:600px; height:auto; display:block; margin-left:auto; margin-right:auto;\"\n","/>\n"]},@@ -348,7 +348,7 @@"<img\n"," src=\"../images/realtime_eval_page_08_image_01.png\"\n"," alt=\"Diagram from page 8\"\n",- " style=\"width:680px; height:auto; display:block; margin-left:auto; margin-right:auto;\"\n",+ " style=\"width:400px; height:auto; display:block; margin-left:auto; margin-right:auto;\"\n","/>\n"]},@@ -417,7 +417,7 @@"\n","A realtime eval is only as trustworthy as the harness that runs it. A good harness has one job: **make runs comparable**. If the same input can’t be replayed under the same settings and produce similar outcomes, it makes it hard to measure and iterate.\n","\n",- "#### 6.1 Start with single-turn replay (the “Crawl” harness)\n",+ "#### [6.1 Start with single-turn replay (the “Crawl” harness)](https://github.com/openai/openai-cookbook/tree/bde983138b99c3c477ac693e52b9df74a2960ca1/examples/evals/realtime_evals/crawl_harness)\n","\n","Start here. Single-turn replay gives the fastest, cleanest signal because you can keep almost everything fixed. Keep the exact audio bytes, preprocessing, VAD configuration, codec, and chunking strategy identical across runs.\n","\n",@@ -489,7 +489,7 @@"id": "56bbacd7","metadata": {},"source": [- "#### 6.2 Replaying saved audio (the “Walk” harness)\n",+ "#### [6.2 Replaying saved audio (the “Walk” harness)](https://github.com/openai/openai-cookbook/tree/bde983138b99c3c477ac693e52b9df74a2960ca1/examples/evals/realtime_evals/walk_harness)\n","\n","When you move from synthetic TTS to real recordings, the harness changes in one important way: **you are streaming audio buffers from saved realistic audio.**\n","\n",@@ -532,7 +532,7 @@"\n"," - If you must use VAD on (to match production), log VAD settings and track boundary events so you can debug failures.\n","\n",- "#### 6.3 Model-simulated multi-turn (the “Run” harness)\n",+ "#### [6.3 Model-simulated multi-turn (the “Run” harness)](https://github.com/openai/openai-cookbook/tree/bde983138b99c3c477ac693e52b9df74a2960ca1/examples/evals/realtime_evals/run_harness)\n","\n","Model-simulated multi-turn uses a **user simulator** to generate the next user turn for a full conversation. It can increase coverage of scenarios, but only if episodes stay comparable across runs.\n","\n",