Repository navigation
Commit 041489a
Python: drop the continuation_token before yielding the terminal update
A consumer that stops iterating at the terminal update never resumed the
generator past that yield, so the cleanup after the loop didn't run and
the options kept the token. Pop it when the terminal event arrives.
Co-Authored-By: Claude Opus 5 <[email protected]>1 parent 88c734d commit 041489a
2 files changed
Lines changed: 32 additions & 10 deletions
File tree
- python/packages/openai
- agent_framework_openai
- tests/openai
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
747 | 746 | | |
748 | 747 | | |
749 | 748 | | |
| |||
754 | 753 | | |
755 | 754 | | |
756 | 755 | | |
757 | | - | |
758 | | - | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
759 | 769 | | |
760 | | - | |
761 | | - | |
762 | | - | |
763 | | - | |
764 | | - | |
765 | | - | |
766 | | - | |
767 | 770 | | |
768 | 771 | | |
769 | 772 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7544 | 7544 | | |
7545 | 7545 | | |
7546 | 7546 | | |
| 7547 | + | |
| 7548 | + | |
| 7549 | + | |
| 7550 | + | |
| 7551 | + | |
| 7552 | + | |
| 7553 | + | |
| 7554 | + | |
| 7555 | + | |
| 7556 | + | |
| 7557 | + | |
| 7558 | + | |
| 7559 | + | |
| 7560 | + | |
| 7561 | + | |
| 7562 | + | |
| 7563 | + | |
| 7564 | + | |
| 7565 | + | |
7547 | 7566 | | |
7548 | 7567 | | |
7549 | 7568 | | |
| |||
0 commit comments