-
-
Notifications
You must be signed in to change notification settings - Fork 258
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
api_type = azure support for OpenAI custom models #178
Comments
Would be good to support a That plugin could work today by setting the global Instead, having a way to pass llm/llm/default_plugins/openai_models.py Lines 181 to 183 in 7744cf9
|
Worth reviewing to see what other options might be useful. |
Got it working! git diff | llm -m azure-gpt4 -s 'explain this change'
That's with this in - model_id: azure-gpt4
model_name: gpt4
api_base: https://special-magic-secret-thing.openai.azure.com/
api_key_name: azure
api_version: 2023-03-15-preview
api_type: azure
api_engine: gpt4 And the branch I'm about to push. |
Simon |
Any plan to merge this? This seems like an useful tool. But some are limited to use Azure OpenAI, so this would be needed. Thanks. |
Adrian I think Simon could close this Issue now! |
Was just reading the code and noticed the same. Tested it and works fine. Many thanks. |
Just to bring some extra closure to this, I wrote up some docs on how to use this feature. #337 |
https://twitter.com/simonw/status/1693706702519140571
Example code here says: https://learn.microsoft.com/en-us/azure/ai-services/openai/quickstart?tabs=command-line&pivots=programming-language-python
The text was updated successfully, but these errors were encountered: