Skip to content

Add Config File and global Settings#286

Open
wk9874 wants to merge 9 commits into
devfrom
wk9874/config_file
Open

Add Config File and global Settings#286
wk9874 wants to merge 9 commits into
devfrom
wk9874/config_file

Conversation

@wk9874

@wk9874 wk9874 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

We are starting to get a large number of environment variables which can be set, and will have lots more in the near future as different model options are added. So have added a option to define these settings in either a config toml file, or still via env vars (with slightly different names)

  • Adds pydantic-settings as a dependency
  • Defines new Settings object, which has a global instance accessed by all parts of code
  • Updates env vars everywhere else in code to use new settings object
  • Env vars inside worker left unchanged as these will not have access to settings object on worker nodea
  • Adds tests and docs

@wk9874 wk9874 requested a review from samueljackson92 June 8, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant