Skip to content

Externalize model cascade configuration - #54

Merged
morgaesis merged 1 commit into
mainfrom
feat/externalize-model-config
Jul 12, 2026
Merged

morgaesis merged 1 commit into
mainfrom
feat/externalize-model-config

Conversation

@morgaesis

Copy link
Copy Markdown
Contributor

Move hardcoded model defaults from src/config.rs into config.toml at the project root, embedded via include_str!() with OnceLock for lazy parsing. Add tests verifying parsed values match the file and malformed files fail loudly. Fix README.md to correctly state local DEFAULT_REQUEST_TIMEOUT_SECS is 480 seconds, not 420 (which is hosted-only).

Move hardcoded DEFAULT_MODEL, DEFAULT_CASCADE, DEFAULT_SCORER_MODEL, and DEFAULT_SCORER_FALLBACK from src/config.rs into config.toml at the project root. Use include_str!() with OnceLock for one-time lazy parsing. Add comprehensive tests verifying parsed values match the file and malformed files fail loudly. Fix README.md to correctly state local default timeout is 480 seconds.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedcargo/​toml@​1.1.2%2Bspec-1.1.010010093100100

View full report

@morgaesis
morgaesis merged commit 5cc1f1f into main Jul 12, 2026
8 checks passed
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