Skip to content

Commit

Permalink
Update libs/partners/google-genai/langchain_google_genai/chat_models.py
Browse files Browse the repository at this point in the history
Co-authored-by: William FH <[email protected]>
  • Loading branch information
lkuligin and hinthornw authored Dec 18, 2023
1 parent 1c380da commit 3f16c61
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,9 @@ class ChatGoogleGenerativeAI(BaseChatModel):
"""Number of chat completions to generate for each prompt. Note that the API may
not return the full n completions if duplicates are generated."""
convert_system_message_to_human: bool = False
"Whether to prepend a SystemMessage to the first HumanMessage or not."
"""Whether to merge any leading SystemMessage into the following HumanMessage.
Gemini does not support system messages; any unsupported messages will raise an error."""

Check failure on line 468 in libs/partners/google-genai/langchain_google_genai/chat_models.py

View workflow job for this annotation

GitHub Actions / ci (libs/partners/google-genai) / lint / build (3.8)

Ruff (E501)

langchain_google_genai/chat_models.py:468:89: E501 Line too long (93 > 88)

class Config:
allow_population_by_field_name = True
Expand Down

0 comments on commit 3f16c61

Please sign in to comment.