mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-04 20:28:10 +00:00
openai[patch]: fix dropping response headers while streaming / Azure (#31580)
This commit is contained in:
parent
8868701c16
commit
8a0782c46c
@ -793,7 +793,8 @@ class BaseChatOpenAI(BaseChatModel):
|
|||||||
if len(choices) == 0:
|
if len(choices) == 0:
|
||||||
# logprobs is implicitly None
|
# logprobs is implicitly None
|
||||||
generation_chunk = ChatGenerationChunk(
|
generation_chunk = ChatGenerationChunk(
|
||||||
message=default_chunk_class(content="", usage_metadata=usage_metadata)
|
message=default_chunk_class(content="", usage_metadata=usage_metadata),
|
||||||
|
generation_info=base_generation_info,
|
||||||
)
|
)
|
||||||
return generation_chunk
|
return generation_chunk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user