Skip to content

Add AI Gateway provider#23

Merged
anbuzin merged 2 commits into
mainfrom
add-gateway-provider
Feb 23, 2026
Merged

Add AI Gateway provider#23
anbuzin merged 2 commits into
mainfrom
add-gateway-provider

Conversation

@anbuzin

@anbuzin anbuzin commented Feb 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@vercel

vercel Bot commented Feb 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
py-ai Ready Ready Preview, Comment Feb 23, 2026 9:05pm

Request Review

@anbuzin anbuzin merged commit 0597ef1 into main Feb 23, 2026
6 checks passed
@anbuzin anbuzin deleted the add-gateway-provider branch February 23, 2026 21:09
Comment on lines +87 to +94
"""Pick delegate based on model and feature requirements.

- Anthropic models without structured output use the native
Anthropic API (richer reasoning support, native tool format).
- Anthropic models *with* structured output use OpenAI-compat
(structured output via the Anthropic-native gateway endpoint
is not currently supported).
- All other models use OpenAI-compat.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ai gateway has its own endpoints also, that I think try to cover everything; it might be worth using those?

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.

2 participants