OpenAIGenerator
raises IndexError
when using stream_options={"include_usage": True}
#8507
Labels
OpenAIGenerator
raises IndexError
when using stream_options={"include_usage": True}
#8507
By default
OpenAIGenerator
does not include token usage when usingstreaming_callback
. According to OpenAI's documentation, you can include usage in streaming responses by passingstream_options={"include_usage": True}
.However when passing this via
generation_kwargs
, the _connect_chunks method fails with anIndexError
:Exception:
The text was updated successfully, but these errors were encountered: