Commit 0bcda2f
fix: add current user message to input_list and fix langgraph model in sync tutorials
- 010_multiturn/acp.py: append current user message to input_list before Runner.run();
without this, Runner.run() was called with an empty list (history excludes current
turn), causing an OpenAI API error for missing input
- 020_streaming/acp.py: same fix for Runner.run_streamed(); also add `return` after
yielding the no-API-key error message so the generator does not fall through
- 030_langgraph/graph.py: change MODEL_NAME from "gpt-5" (invalid) to "gpt-4o";
remove unsupported `reasoning` kwarg from ChatOpenAI constructor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 264a8f4 commit 0bcda2f
3 files changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| |||
0 commit comments