Skip to content

Comments

feat: add api shape field to allow distinction between api formats beyond sdk type#14487

Open
rekram1-node wants to merge 2 commits intodevfrom
add-api-shape
Open

feat: add api shape field to allow distinction between api formats beyond sdk type#14487
rekram1-node wants to merge 2 commits intodevfrom
add-api-shape

Conversation

@rekram1-node
Copy link
Collaborator

@rekram1-node rekram1-node commented Feb 20, 2026

This is a wip, but the idea here is some models on azure for instance only support the completions api and not responses.

We had poor code to distinguish this, the idea here is to update models.dev to allow things like:

[provider]
shape = completions

We should prolly change shape from an enum to a string to prevent new shapes on models.dev from breaking old oc versions

@rekram1-node rekram1-node changed the title feat: add api shape field to allow distinction between sdks feat: add api shape field to allow distinction between api formats beyond sdk type Feb 20, 2026
@OpeOginni
Copy link
Contributor

Was thinking about this, would it be okay to completely make two providers as we do have one for Azure OpenAI, and in models.dev only add models that support responses api (open ai models), then on the other one Azure Cognitive Services its going to be predominantly for the completion models?

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