Skip to content

Add Model Router API documentation#1156

Open
rsabhaya-do wants to merge 3 commits intodigitalocean:mainfrom
rsabhaya-do:rsabhaya/gen-ai-model-router
Open

Add Model Router API documentation#1156
rsabhaya-do wants to merge 3 commits intodigitalocean:mainfrom
rsabhaya-do:rsabhaya/gen-ai-model-router

Conversation

@rsabhaya-do
Copy link
Copy Markdown

@rsabhaya-do rsabhaya-do commented Apr 17, 2026

New public documentation for the model router api

https://do-internal.atlassian.net/browse/INF-244

"policies": [
{
"task_slug": "summarization",
"models": ["gemma3:latest", "gemma3:270m"],
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.

seeing this error {"id":"invalid_argument","message":"rpc error: code = InvalidArgument desc = model gemma3:latest not found"}

api_key_info:
$ref: '#/apiModelProviderKeyInfo'
type: object
apiCreateModelRouterInputPublic:
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.

Entries are in alphabetical order, so apiGetModelRouter* must come before apiGetModelUsage*

api_key_info:
$ref: '#/apiModelProviderKeyInfo'
type: object
apiDeleteModelRouterInputPublic:
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.

this isn't referenced anywhere, can you please check if its required ?

usage:
$ref: '#/apiResourceUsage'
type: object
apiGetModelRouterInputPublic:
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.

this too is unreferenced, kindly check if its required

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