ychat icon indicating copy to clipboard operation
ychat copied to clipboard

Allow the OpenAI API BASE_URL to be overridden

Open chris-hatton opened this issue 1 year ago • 0 comments

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)

chris-hatton avatar Nov 25 '23 10:11 chris-hatton