We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I want to connect to an OpenAI compatible proxy server (i.e. litellm), it does not accept requests including /v1 in the URL.
/v1
http://localhost:8000/chat/completion
http://localhost:8000/v1/chat/completion
The official OpenAI python library has base_url option to create client and the default base_url contains /v1
base_url
if base_url is None: base_url = f"https://api.openai.com/v1"
I can make a client for my proxy like
client = openai.OpenAI(api_key="api-key", base_url="http://localhost:8000")
So, I want base_url support instead of host, port and scheme configuration here.
OpenAI/Sources/OpenAI/OpenAI.swift
Line 30 in 843e087
Also, I want APIPath not including /v1 and move it to base_url
Lines 211 to 231 in 843e087
The text was updated successfully, but these errors were encountered:
I need this feature. Can a manager review this PR and merge it into the code?
Sorry, something went wrong.
No branches or pull requests
When I want to connect to an OpenAI compatible proxy server (i.e. litellm), it does not accept requests including
/v1
in the URL.http://localhost:8000/chat/completion
http://localhost:8000/v1/chat/completion
The official OpenAI python library has
base_url
option to create client and the defaultbase_url
contains/v1
I can make a client for my proxy like
So, I want
base_url
support instead of host, port and scheme configuration here.OpenAI/Sources/OpenAI/OpenAI.swift
Line 30 in 843e087
Also, I want APIPath not including
/v1
and move it tobase_url
OpenAI/Sources/OpenAI/OpenAI.swift
Lines 211 to 231 in 843e087
The text was updated successfully, but these errors were encountered: