I worked on a PR to support the AI Gateway natively in `ai-retry` with full type-safety You can pass a model string and it will automatically infer it as a language model Behind the scenes it uses the gateway provider from the @aisdk package to resolve it to a model instance