-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: add available models API #705
Conversation
9e97855
to
efa1540
Compare
@@ -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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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]>
Signed-off-by: Donnie Adams <[email protected]>
f3447ce
to
2783793
Compare
Merging based on "offline" conversation with Taylor. |
The available models API allows listing of all available models from all configured model providers in Otto8.
Requires: obot-platform/tools#248