Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adding model and provider reference routes #732

Merged
merged 4 commits into from
Nov 11, 2024
Merged

Conversation

roh26it
Copy link
Collaborator

@roh26it roh26it commented Nov 5, 2024

Added 2 new routes - /v1/reference/models and /v1/reference/providers that provide a reference to all supported providers and models on the AI gateway.

"version": "1.0.0",
"data": [
{
"id": "ai21",
Copy link
Collaborator

Choose a reason for hiding this comment

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

would recommend using the enums defined in /src/globals for all the providerIds in this file and in models.json

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fair, but since this is loaded from a json file we cannot use enums in it.

@VisargD VisargD merged commit c19cced into main Nov 11, 2024
1 check passed
@VisargD VisargD deleted the feat/model-provider-api branch November 11, 2024 10:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants