Skip to content

Commit

Permalink
Update model config
Browse files Browse the repository at this point in the history
  • Loading branch information
milesha committed Oct 1, 2024
1 parent baa1660 commit 955cbeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/intelligence-service/app/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from pydantic_settings import BaseSettings, SettingsConfigDict

class Settings(BaseSettings):
model_config = SettingsConfigDict(validate_key=False)
model_config = SettingsConfigDict(env_file=".env")

OPENAI_API_KEY: str = ""

Expand All @@ -17,4 +17,4 @@ def is_openai_available(self):
def is_azure_openai_available(self):
return bool(self.AZURE_OPENAI_API_KEY) and bool(self.AZURE_OPENAI_ENDPOINT) and bool(self.AZURE_OPENAI_API_VERSION)

settings = Settings(_env_file=".env")
settings = Settings()

0 comments on commit 955cbeb

Please sign in to comment.