Examples and guides for using the OpenAI API
Improved image diagram (#2401)
Minhajul Hoquee6ef8917b6af
diff --git a/examples/Realtime_eval_guide.ipynb b/examples/Realtime_eval_guide.ipynbindex da5326fe..dda66251 100644--- a/examples/Realtime_eval_guide.ipynb+++ b/examples/Realtime_eval_guide.ipynb@@ -224,7 +224,9 @@"\n","2. Walk (move right): real noisy audio + single-turn\n","\n",- "3. Run (move up): synthetic audio + multi-turn simulation Top-right (real audio + full multi-turn flow) is manual eval: run end-to-end sessions the way users do in production. Keep it in the loop for the entire project lifecycle."+ "3. Run (move up): synthetic audio + multi-turn simulation \n",+ "\n",+ "Top-right (real audio + full multi-turn flow) is manual eval: run end-to-end sessions the way users do in production. Keep it in the loop for the entire project lifecycle."]},{@@ -252,7 +254,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](https://github.com/openai/openai-cookbook/tree/bde983138b99c3c477ac693e52b9df74a2960ca1/examples/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/main/examples/evals/realtime_evals)."]},{@@ -417,7 +419,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)](https://github.com/openai/openai-cookbook/tree/bde983138b99c3c477ac693e52b9df74a2960ca1/examples/evals/realtime_evals/crawl_harness)\n",+ "#### [6.1 Start with single-turn replay (the “Crawl” harness)](https://github.com/openai/openai-cookbook/tree/main/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 +491,7 @@"id": "56bbacd7","metadata": {},"source": [- "#### [6.2 Replaying saved audio (the “Walk” harness)](https://github.com/openai/openai-cookbook/tree/bde983138b99c3c477ac693e52b9df74a2960ca1/examples/evals/realtime_evals/walk_harness)\n",+ "#### [6.2 Replaying saved audio (the “Walk” harness)](https://github.com/openai/openai-cookbook/tree/main/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 +534,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)](https://github.com/openai/openai-cookbook/tree/bde983138b99c3c477ac693e52b9df74a2960ca1/examples/evals/realtime_evals/run_harness)\n",+ "#### [6.3 Model-simulated multi-turn (the “Run” harness)](https://github.com/openai/openai-cookbook/tree/main/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",diff --git a/images/realtime_eval_page_02_image_01.png b/images/realtime_eval_page_02_image_01.pngindex 4fbdfdbd..9c99c713 100644Binary files a/images/realtime_eval_page_02_image_01.png and b/images/realtime_eval_page_02_image_01.png differ