Skip to content

Commit

Permalink
🔧 fix to allow extra vars in env
Browse files Browse the repository at this point in the history
  • Loading branch information
shroominic committed Feb 12, 2024
1 parent 2ae4c92 commit be77287
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/funcchain/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class FuncchainSettings(BaseSettings):
debug: bool = True

llm: BaseChatModel | str = Field(
default="openai/gpt-3.5-turbo-1106",
default="openai/gpt-3.5-turbo",
validate_default=False,
)

Expand All @@ -28,10 +28,10 @@ class FuncchainSettings(BaseSettings):
retry_parse_sleep: float = 0.1

# LANGSMITH
langchain_project: str = "funcchain"
langchain_tracing_v2: str = "true"
langchain_api_key: str = ""
# todo: make langsmith load from here and not the .env
# langchain_project: str = "funcchain"
# langchain_tracing_v2: str = "true"
# langchain_api_key: str = ""
# # todo: make langsmith load from here and not the .env

# PROVIDERS
openai_api_key: Optional[str] = None
Expand Down Expand Up @@ -81,6 +81,7 @@ def llamacpp_kwargs(self) -> dict:

class Config:
env_file = ".env"
extra = "ignore"


settings = FuncchainSettings()
Expand Down

0 comments on commit be77287

Please sign in to comment.