From 34a10ec2b5d58704287a0b451b1b25e0cfcc80fd Mon Sep 17 00:00:00 2001 From: Kye Date: Tue, 11 Jul 2023 20:11:13 -0400 Subject: [PATCH] clean up model name Former-commit-id: c16a5c9a0f9ccf9b040a33123feca6ab9dc52363 --- 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 46984130..a6775c38 100644 --- a/swarms/agents/utils/llm.py +++ b/swarms/agents/utils/llm.py @@ -140,7 +140,7 @@ class ChatOpenAI(BaseChatModel, BaseModel): """ client: Any #: :meta private: - model_name: str = os.environ["MODEL_NAME"] or 'gpt-4' + model_name: str = os.environ.get("MODEL_NAME", "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."""