diff --git a/libs/partners/xai/langchain_xai/chat_models.py b/libs/partners/xai/langchain_xai/chat_models.py index 8de52386ab644..4bf9af6cab09b 100644 --- a/libs/partners/xai/langchain_xai/chat_models.py +++ b/libs/partners/xai/langchain_xai/chat_models.py @@ -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):