Skip to content

Commit

Permalink
Merge pull request #183 from topoteretes/COG-530-call-osgetenv-in-bas…
Browse files Browse the repository at this point in the history
…e-config

Call os.getenv in BaseConfig
  • Loading branch information
Vasilije1990 authored Nov 8, 2024
2 parents c8464d8 + 4375742 commit 82b2235
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cognee/base_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from typing import Optional
from functools import lru_cache
from pydantic_settings import BaseSettings, SettingsConfigDict
Expand All @@ -7,8 +8,8 @@
class BaseConfig(BaseSettings):
data_root_directory: str = get_absolute_path(".data_storage")
monitoring_tool: object = MonitoringTool.LANGFUSE
graphistry_username: Optional[str] = None
graphistry_password: Optional[str] = None
graphistry_username: Optional[str] = os.getenv("GRAPHISTRY_USERNAME")
graphistry_password: Optional[str] = os.getenv("GRAPHISTRY_PASSWORD")

model_config = SettingsConfigDict(env_file = ".env", extra = "allow")

Expand Down

0 comments on commit 82b2235

Please sign in to comment.