From 0ad2d5f27a419d44a6421bdb13f9d21f9aac52b7 Mon Sep 17 00:00:00 2001 From: James Campbell Date: Fri, 28 Jul 2023 01:38:32 -0400 Subject: [PATCH] [nit] Add default value for ChatOpenAI client (#7939) Micro convenience PR to avoid warning regarding missing `client` parameter. It is always set during initialization. @baskaryan Co-authored-by: Bagatur --- libs/langchain/langchain/chat_models/openai.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/langchain/langchain/chat_models/openai.py b/libs/langchain/langchain/chat_models/openai.py index 8d1137b6fb..2da3a14d0d 100644 --- a/libs/langchain/langchain/chat_models/openai.py +++ b/libs/langchain/langchain/chat_models/openai.py @@ -190,7 +190,7 @@ class ChatOpenAI(BaseChatModel): def lc_serializable(self) -> bool: return True - client: Any #: :meta private: + client: Any = None #: :meta private: model_name: str = Field(default="gpt-3.5-turbo", alias="model") """Model name to use.""" temperature: float = 0.7