Skip to content

fix: normalize provider names to accept underscores as alias for hyphens#85

Merged
lfnovo merged 1 commit intomainfrom
fix/normalize-provider-names
Feb 15, 2026
Merged

fix: normalize provider names to accept underscores as alias for hyphens#85
lfnovo merged 1 commit intomainfrom
fix/normalize-provider-names

Conversation

@lfnovo
Copy link
Owner

@lfnovo lfnovo commented Feb 15, 2026

Summary

  • Normalize provider names by replacing underscores with hyphens in _get_provider_class() and get_provider_models()
  • Fixes ValueError when using openai_compatible (underscore form) instead of openai-compatible (hyphen form)
  • Bump to 2.19.3

Test plan

  • Existing factory tests pass (20/20)
  • Verify AIFactory.create_language("openai_compatible", ...) works

Provider names like `openai_compatible` were rejected because the
registry only contains hyphenated forms. Now both `_get_provider_class`
and `get_provider_models` normalize underscores to hyphens, matching
Python naming conventions used by downstream consumers.

Bump to 2.19.3.
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 3 files

@lfnovo lfnovo merged commit 6ef0e8d into main Feb 15, 2026
6 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