Skip to content

Refactor model config#109

Open
JosephMarinier wants to merge 2 commits intomainfrom
joseph/refactor-model-config
Open

Refactor model config#109
JosephMarinier wants to merge 2 commits intomainfrom
joseph/refactor-model-config

Conversation

@JosephMarinier
Copy link
Copy Markdown
Collaborator

@JosephMarinier JosephMarinier commented May 7, 2026

  • Yield multiple validation errors at once from _check_companion_services(), not just the first one.
  • Refactor model config
    • Get rid of _strip_other_mode_fields() by merging the 3 model classes into a single ModelConfig that always accepts extra EVA_MODEL__*_PARAMS environment variables, even if not used. This removed 82 lines of code in src/eva/models/config.py.
    • Skip validating EVA_MODEL__* environment variables when EVA_MAX_RERUN_ATTEMPTS=0. That way, if you specify EVA_MAX_RERUN_ATTEMPTS=0, you no longer need to remove these EVA_MODEL__* environment variables from your .env file. Somewhat-breaking change: we used to skip validating EVA_MODEL__* environment variables when EVA_FORCE_RERUN_METRICS=True, but it could be set while there are still conversations to rerun, so now you have to specify EVA_MAX_RERUN_ATTEMPTS=0.

from `_check_companion_services()`, not just the first one.
- Get rid of `_strip_other_mode_fields()` by merging the 3 model classes into a single `ModelConfig` that always accepts extra `EVA_MODEL__*_PARAMS` environment variables, even if not used.
- Skip validating `EVA_MODEL__*` environment variables when `EVA_MAX_RERUN_ATTEMPTS=0` (and not when `EVA_FORCE_RERUN_METRICS=True`, since it could be set while there are still conversations to rerun). That way, if you specify `EVA_MAX_RERUN_ATTEMPTS=0`, you no longer need to remove these `EVA_MODEL__*` environment variables from your `.env` file.
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