-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
Allow Custom URL for OpenAI API #407
Comments
or our own locally hosted endpoint like https://github.com/oobabooga/text-generation-webui |
Ah, we can consider that. What would be the reason behind wanting to do that? I'm assuming because you've already gotten a subscription and want to use credits there or some equivalent? |
Yes. That's correct. My organisation already uses Azure and I can use their end point at no personal cost. As noted by someone else, it would be great if it could just be a custom field to override the OpenAI default. That would allow any custom endpoint for the API. |
+1 for waiting that. It would be great to set a custom endpoint in /config. |
I checked the source code, Khoj uses langchain I've tried to add this environment into the docker compose file and it works. |
Thanks a ton @aleung for looking into this! Glad that a simple change like updating the Let me update our docs with more complete instructions on how to use this soon. |
@mooangus I'm curious whether you actually managed to get the connection with Azure working after this change was implemented? Azure uses a different route for the endpoints than OpenAI, and I think there're also some difference in how the payload is built, so I was wondering if simply having the ability to change the URL allowed you to connect to Azure OpenAI? Perhaps there's some more change necessary to support this: the |
It would be great if you allowed for a custom URL to be specified for OpenAI's API so we could use Azure OpenAI instance instead.
The text was updated successfully, but these errors were encountered: