Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: add available models API #705

Merged
merged 4 commits into from
Dec 3, 2024

Conversation

thedadams
Copy link
Contributor

The available models API allows listing of all available models from all configured model providers in Otto8.

Requires: obot-platform/tools#248

@thedadams thedadams force-pushed the add-available-models-api branch from 9e97855 to efa1540 Compare December 2, 2024 11:39
@thedadams thedadams requested a review from g-linville December 2, 2024 11:40
@@ -59,8 +59,15 @@ The OpenAI model provider is the default and is configured by either setting `OP
## Azure OpenAI

The Azure OpenAI model provider requires setting the following environment variables:
- `OTTO8_AZURE_OPENAI_MODEL_PROVIDER_API_KEY`: Found on the "Home" page of the Azure OpenAI Studio.
Copy link
Contributor

Choose a reason for hiding this comment

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

You should update the two example API responses above to avoid confusion about the added and removed env vars.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -59,8 +59,15 @@ The OpenAI model provider is the default and is configured by either setting `OP
## Azure OpenAI

The Azure OpenAI model provider requires setting the following environment variables:
- `OTTO8_AZURE_OPENAI_MODEL_PROVIDER_API_KEY`: Found on the "Home" page of the Azure OpenAI Studio.
- `OTTO8_AZURE_OPENAI_MODEL_PROVIDER_ENDPOINT`: The endpoint to use, found by clicking on the "Deployment" name from the "Deployments" page of the Azure OpenAI Studio.
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a note in here that mentions the format of this url matters?

I had added one in the docs PR I was preparing, but this one is more comprehensive. Something to the effect of:

The provider endpoint must be in the format https://<your-custom-name>.openai.azure.com - if your Azure OpenAI resource does not have an endpoint that looks like this, you need to create one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

The available models API allows listing of all available models from all
configured model providers in Otto8.

Signed-off-by: Donnie Adams <[email protected]>
Signed-off-by: Donnie Adams <[email protected]>
Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams force-pushed the add-available-models-api branch from f3447ce to 2783793 Compare December 2, 2024 19:11
@thedadams thedadams requested a review from drpebcak December 2, 2024 19:11
@thedadams
Copy link
Contributor Author

Merging based on "offline" conversation with Taylor.

@thedadams thedadams merged commit 98789f8 into obot-platform:main Dec 3, 2024
@thedadams thedadams deleted the add-available-models-api branch December 3, 2024 00:49
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.

5 participants