From 38e53691dd2f8730339da2a490d49f2de5ba0b48 Mon Sep 17 00:00:00 2001 From: Kye Date: Tue, 11 Jul 2023 20:00:05 -0400 Subject: [PATCH] or logic Former-commit-id: cb4497397df546019df71f7b8aa63e8518a0be92 --- swarms/agents/utils/llm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarms/agents/utils/llm.py b/swarms/agents/utils/llm.py index b28d932b..a9fdb265 100644 --- a/swarms/agents/utils/llm.py +++ b/swarms/agents/utils/llm.py @@ -139,7 +139,7 @@ class ChatOpenAI(BaseChatModel, BaseModel): """ client: Any #: :meta private: - model_name: str = os.environ["MODEL_NAME"] + model_name: str = os.environ["MODEL_NAME"] or 'gpt-4' """Model name to use.""" model_kwargs: Dict[str, Any] = Field(default_factory=dict) """Holds any model parameters valid for `create` call not explicitly specified."""