Skip to content

fix: Add graceful fallback for unknown models in RESOLUTION_MAP#814

Open
IMaloney wants to merge 4 commits intozai-org:mainfrom
IMaloney:fix/resolution-map-fallback
Open

fix: Add graceful fallback for unknown models in RESOLUTION_MAP#814
IMaloney wants to merge 4 commits intozai-org:mainfrom
IMaloney:fix/resolution-map-fallback

Conversation

@IMaloney
Copy link
Copy Markdown

@IMaloney IMaloney commented Feb 19, 2026

fixes KeyError when using local model paths or unrecognized model names

wraps lookup in try/except, falls back to (480, 720) with warning listing valid models

tested with local paths and invalid names, 9 tests pass

Test User added 4 commits February 19, 2026 03:14
Wraps RESOLUTION_MAP lookup in try/except to handle local model paths
or unrecognized model names. Provides helpful error message listing
valid model names and falls back to default 480x720 resolution.

Fixes KeyError when using local paths like ./local_models/CogVideoX-5B
@IMaloney IMaloney marked this pull request as draft February 20, 2026 06:29
@IMaloney IMaloney marked this pull request as ready for review February 21, 2026 00:33
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