From 630090778d6eebd9370e14af338801c71ca7f49d Mon Sep 17 00:00:00 2001 From: Archkon <180910180+Archkon@users.noreply.github.com> Date: Sat, 21 Dec 2024 15:53:53 +0800 Subject: [PATCH] Update chat_models.py --- libs/partners/xai/langchain_xai/chat_models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/partners/xai/langchain_xai/chat_models.py b/libs/partners/xai/langchain_xai/chat_models.py index f4fb5904a9c15..255b3637e9dd5 100644 --- a/libs/partners/xai/langchain_xai/chat_models.py +++ b/libs/partners/xai/langchain_xai/chat_models.py @@ -267,7 +267,8 @@ class Joke(BaseModel): model_config = ConfigDict( populate_by_name=True, - extra="forbid" + extra="forbid", + json_excludes={"openai_api_key"} ) @property