Skip to content
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

Need Create custom URl for comuincating with a proxy server #179

Open
JavadFaghih opened this issue Mar 9, 2024 · 0 comments
Open

Need Create custom URl for comuincating with a proxy server #179

JavadFaghih opened this issue Mar 9, 2024 · 0 comments

Comments

@JavadFaghih
Copy link
Contributor

Describe the solution you'd like
hi,
I need a way to use these great library to work with my own back end service, then my back end call Open AI API.
but the buildURL function does not get url port and http scheme.
I need a change on these function to create my own backend url.

something like these:

func buildURL(path: String) -> URL {
var components = URLComponents()
components.scheme = configuration.scheme
components.host = configuration.host
components.port = configuration.port
components.path = path
return components.url!
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant