fix(models): add xAI provider prefixes to _PROVIDER_PREFIXES - #7398
fix(models): add xAI provider prefixes to _PROVIDER_PREFIXES#7398konsisumer wants to merge 1 commit into
Conversation
9c4ff1b to
aa71070
Compare
|
Rebased onto latest
|
|
Fixed the 3 failing Fix: added |
db32116 to
027215e
Compare
|
Rebased onto latest Root cause: commit Fix: Added both methods to the test's |
027215e to
432f50b
Compare
432f50b to
11a949a
Compare
The recent xAI provider commit (8bcb8b8) added the overlay and aliases in providers.py but omitted updating _PROVIDER_PREFIXES in model_metadata.py. Without "xai", "x-ai", and "x.ai" in the set, _strip_provider_prefix() cannot strip them, causing model strings like "xai:grok-4" to fail context-length lookups silently.
11a949a to
7d9f203
Compare
|
Closing: referenced_issue_closed. all referenced issues closed: [7575] autocontrib · housekeeping · 2026-04-19T11:40:22Z |
Summary
"xai","x-ai", and"x.ai"to_PROVIDER_PREFIXESinagent/model_metadata.py_strip_provider_prefix()cannot strip xAI prefixes from model strings like"xai:grok-4", causing silent failures in context-length lookups and model metadata queries8bcb8b8ebut_PROVIDER_PREFIXESwas not updatedTest plan
test_xai_provider_prefix_is_strippedtest verifying all three aliasesTestStripProviderPrefixtests passCloses #7575