Skip to content

Commit

Permalink
langchain[patch]: fix ChatVertexAI streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Dec 7, 2023
1 parent a7271cf commit 2670e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/chat_models/vertexai.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def _stream(
) -> Iterator[ChatGenerationChunk]:
question = _get_question(messages)
history = _parse_chat_history(messages[:-1])
params = self._prepare_params(stop=stop, **kwargs)
params = self._prepare_params(stop=stop, stream=True, **kwargs)
examples = kwargs.get("examples", None)
if examples:
params["examples"] = _parse_examples(examples)
Expand Down

0 comments on commit 2670e6e

Please sign in to comment.