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

Allow the OpenAI API BASE_URL to be overridden #99

Open
chris-hatton opened this issue Nov 25, 2023 · 0 comments
Open

Allow the OpenAI API BASE_URL to be overridden #99

chris-hatton opened this issue Nov 25, 2023 · 0 comments

Comments

@chris-hatton
Copy link

chris-hatton commented Nov 25, 2023

Projects such as LocalAI emulate the OpenAI API's.

To enable the use of YChat with such services, it's necessary to allow for the host (and maybe port) to be overridden when creating a YChat instance.

For example:

val ychat = YChat.create(apiKey = "<api key>", host = "127.0.0.1", port = 8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant