Skip to content

Commit

Permalink
docs(assistants): correct on_text_delta example (#1896)
Browse files Browse the repository at this point in the history
  • Loading branch information
baballev authored Nov 27, 2024
1 parent 83f4774 commit 460b663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openai/lib/streaming/_assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def on_text_delta(self, delta: TextDelta, snapshot: Text) -> None:
on_text_delta(TextDelta(value=" solution"), Text(value="The solution")),
on_text_delta(TextDelta(value=" to"), Text(value="The solution to")),
on_text_delta(TextDelta(value=" the"), Text(value="The solution to the")),
on_text_delta(TextDelta(value=" equation"), Text(value="The solution to the equivalent")),
on_text_delta(TextDelta(value=" equation"), Text(value="The solution to the equation")),
"""

def on_text_done(self, text: Text) -> None:
Expand Down

0 comments on commit 460b663

Please sign in to comment.