-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow change base_url #51
Comments
My suggestion is to override the
Do you mean parameters like
By cleaner API, are you referring to the |
Thank you, my comment on the cleaner api just meant that the Azure Provider ( it doesn't have to be part of the main src, but can be provided as an example of override ). |
That seems like a reasonable refactor |
Here is the example code for a local LLM that I run using OpenAI.jl : |
Sorry to revive a dead issue -- was there a good way to set the OpenAI organization key for requests? |
There isn't a canonical way implemented, I think |
allow base_url to be set ...just not that but all other OpenAI config params.
This would make it flexible to switch and work as client for non-OpenAI local LLM servers that support OpenAI interface(s).
Adding more details:
I have a local LLM server LiteLLM running that honors OpenAPI calls.
I had to find out a round-about way of doing things like:
o = OpenAI.OpenAIProvider("junk", "http://localhost:8000", "")
and then passing this to the second create_chat(...) method to make it work.
would be great if the API is a bit more cleaner.
The text was updated successfully, but these errors were encountered: