Skip to content

fix: allow deepseek and openrouter providers in ModelConfig validation#180

Open
imnishantmehra wants to merge 1 commit into
lemony-ai:mainfrom
imnishantmehra:fix/modelconfig-allow-deepseek-openrouter
Open

fix: allow deepseek and openrouter providers in ModelConfig validation#180
imnishantmehra wants to merge 1 commit into
lemony-ai:mainfrom
imnishantmehra:fix/modelconfig-allow-deepseek-openrouter

Conversation

@imnishantmehra
Copy link
Copy Markdown
Contributor

Description

Fix inconsistency in ModelConfig.validate_provider() where supported providers (deepseek, openrouter) were rejected during validation.

The allow-list in schema validation did not include these providers, even though they are supported in provider capabilities, registry, and used in examples. This caused valid user configurations to fail.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Performance improvement

Testing

  • Tests pass locally (6/6 new tests passed)
  • Added new tests
  • Updated documentation
  • Ran formatting script

Test Results

pytest -o addopts= tests/test_model_config_provider_validation.py -v

Copy link
Copy Markdown
Collaborator

@saschabuehrle saschabuehrle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the focused fix. I validated the patch locally and the targeted tests and Ruff pass.\n\nI am requesting changes for release fit rather than test correctness: this PR expands the public provider-validation surface for a provider we do not want to add new release-facing code/test coverage for right now.\n\nPlease either split this into a narrower PR for the non-controversial provider validation fix, or hold the broader provider-alignment change for a later release where we can handle provider positioning intentionally.\n\nValidation I ran locally:\n- python -m pytest -q -o addopts='' tests/test_model_config_provider_validation.py tests/test_config.py tests/test_production_readiness.py -m 'not integration and not requires_api and not slow' -> 159 passed\n- python -m ruff check cascadeflow/schema/config.py tests/test_model_config_provider_validation.py -> passed

@imnishantmehra
Copy link
Copy Markdown
Contributor Author

imnishantmehra commented May 21, 2026 via email

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.

2 participants