Skip to content

fix: accept slash-qualified model IDs#1

Open
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:fix/get-model-by-slash-id
Open

fix: accept slash-qualified model IDs#1
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:fix/get-model-by-slash-id

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

  • allow get_model_by_id() to resolve both provider:model and provider/model IDs
  • preserve validation for missing provider/model parts
  • cover slash-qualified lookups against the real generated database

Why

The README demonstrates get_model_by_id("openai/gpt-5.5"), but the implementation only accepted colon-qualified IDs. parse_model_id() already recognizes slash-qualified provider IDs, so this aligns lookup behavior with the documented API shape.

Verification

  • uv run pytest

Duplicate check

  • Checked open/all issues and PRs in vercel-labs/modelsdotdev-python; there were no existing issues or PRs for this mismatch.

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