Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vbarda committed Nov 11, 2024
1 parent 580a4d5 commit 0eb67b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/partners/xai/langchain_xai/chat_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ def validate_environment(self) -> Self:

if client_params["api_key"] is None:
raise ValueError(
"xAI API key is not set. Please set it in the `xai_api_key` field or in the `XAI_API_KEY` environment variable."
"xAI API key is not set. Please set it in the `xai_api_key` field or "
"in the `XAI_API_KEY` environment variable."
)

if not (self.client or None):
Expand Down

0 comments on commit 0eb67b7

Please sign in to comment.