How are AI Gateway model strings converted to language models?

HEAD
0927570Version Packages (#12144)
This post might have stale content, as HEAD is 1823 commits ahead.

how does the ai gateway string, "anthorpic/claude-sonnet-4.5" get converted into a usable langauge model? does it happen inside streamText?

why isn't it the same behavior for other providers? like could it work with "bedrock:anthoric/..." potentially?


END OF POST

How are AI Gateway model strings converted to language models? — vercel/ai