Skip to content

Commit

Permalink
fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuligin committed Feb 20, 2024
1 parent 072559d commit f297c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/vertexai/langchain_google_vertexai/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,12 @@ def _generate(
ChatGeneration(
message=_parse_response_candidate(c),

Check failure on line 400 in libs/vertexai/langchain_google_vertexai/chat_models.py

View workflow job for this annotation

GitHub Actions / cd libs/vertexai / - / make lint #3.8

Ruff (F821)

langchain_google_vertexai/chat_models.py:400:55: F821 Undefined name `c`

Check failure on line 400 in libs/vertexai/langchain_google_vertexai/chat_models.py

View workflow job for this annotation

GitHub Actions / cd libs/vertexai / - / make lint #3.11

Ruff (F821)

langchain_google_vertexai/chat_models.py:400:55: F821 Undefined name `c`
generation_info=get_generation_info(
c,
candidate,
self._is_gemini_model,
usage_metadata=response.to_dict().get("usage_metadata"),
),
)
for c in response.candidates
for candidate in response.candidates
]
else:
question = _get_question(messages)
Expand Down

0 comments on commit f297c90

Please sign in to comment.