-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
How to provide custom endpoint for Azure OpenAi service? (gateway URL) #1272
Comments
Same issue here. I personally hope the endpoint could be modified in the form of But for this issue, you could somewhat override endpoint by providing basePath/baseOptions.
|
Yes, this would be a good change to make |
Just in case the only one option I found right now is to override private
|
can you assign this to me |
@nfcampos if this problem is still not taken care of I can do it. Please let me know :) |
yes go ahead |
By the way, I think there are two ways to solve it.
@nfcampos what do you think? |
That would be awesome to allow a custom domain IMO |
Thanks for raising this issue @egarkavy 👏 👍 I created a PR to suggest a solution for this. ✅ |
* 🎨 Add util function to generate openAI endpoint. * ✅ Add unit tests for openAI endpoint util function. * 🏷️ Add 'azureOpenAiBasePath' to 'AzureOpenAIInput'. * ✨ Use new getEndpoint function with full support for AZURE_OPENAI_BASE_PATH env. * 📝 Add AZURE_OPENAI_BASE_PATH env to documentation. * 🎨 Auto code style fixes from `yarn format`. * ✏️ Remove trailing slash. * ✏️ Capitalize AI to match convention. * Add check for azureOpenAIApiKey. * Make full azureOpenAIBasePath configurable. * ✅ Update unit test for new azureOpenAIBasePath. * 📝 Update documentation on azureOpenAIBasePath. * Fix case for normal OpenAI calls, lint and format * 🎨 `yarn format` auto code style fixes. --------- Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
In my company we use gateway url to access Azure open AI service to do chat completions. It looks like this: https://xxx-xxx-openai.azure-api.net.
From your sourcecode I see that endpoint is set directly in the
completeionWithRetry
methodIs there any way to work with your Azure OpenAI class but having custom endpoint ?
The text was updated successfully, but these errors were encountered: