Skip to content

Commit

Permalink
chore: added a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
adubovik committed Nov 26, 2024
1 parent 94f8b2a commit 6e579b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/utils/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ def _gen():
# return an error as a first chunk.
# A valid chunk should be generated first,
# otherwise, SDK throws "Not all choices were generated" error.
# This could be fixed by converting error chunks
# into DIAL Exceptions in the Interceptors SDK instead of
# treating them as normal chat completion chunks.
# See `handle_streaming_errors`.
yield format_chunk(create_chunk(stream=stream))
yield format_chunk(error.json_error())
yield format_chunk("[DONE]")
Expand Down

0 comments on commit 6e579b9

Please sign in to comment.