From 2fbafce9de1c24aa437781f1cce5c91e71ad068c Mon Sep 17 00:00:00 2001 From: Kye Date: Tue, 11 Jul 2023 19:51:27 -0400 Subject: [PATCH] AttributeError: module 'os' has no attribute 'env' Former-commit-id: b6b74116b8992498b107bf7cff58a3ed43d15ea5 --- DOCS/FLYWHEEL.md | 2 +- swarms/agents/utils/llm.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/FLYWHEEL.md b/DOCS/FLYWHEEL.md index 24e6e98a..ac8851be 100644 --- a/DOCS/FLYWHEEL.md +++ b/DOCS/FLYWHEEL.md @@ -82,7 +82,7 @@ 5. **Security and Compliance Risks**: As the user base grows and the software becomes more complex, the risk of security issues increases. Moreover, as contributors from various regions join, compliance with various international laws could become an issue. * **Mitigation**: Establish strong security practices from the start. Regularly conduct security audits. Seek legal counsel to understand and adhere to international laws and regulations. -Activation Plan for the Flywheel: +## Activation Plan for the Flywheel: 1. **Community Building**: Begin by fostering a supportive community around Swarms. Encourage early adopters to contribute and provide feedback. Create comprehensive documentation, community guidelines, and a forum for discussion and support. diff --git a/swarms/agents/utils/llm.py b/swarms/agents/utils/llm.py index a8ca7870..b28d932b 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.env["MODEL_NAME"] + model_name: str = os.environ["MODEL_NAME"] """Model name to use.""" model_kwargs: Dict[str, Any] = Field(default_factory=dict) """Holds any model parameters valid for `create` call not explicitly specified."""