openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

Enable user custom baseUrl of OpenAiService in the service package

Open SUTFutureCoder opened this issue 1 year ago • 1 comments

This change allows users to specify the baseurl to convert directly from the client package to the OpenAiService in the service package. In addition, because countries or regions such as China cannot use the original address of the OpenAI API, it is necessary to allow the baseurl to be specified.

SUTFutureCoder avatar Mar 06 '23 09:03 SUTFutureCoder

很需要

Kevin1118 avatar Mar 14 '23 08:03 Kevin1118

请求审核合并

heartdance avatar Apr 19 '23 07:04 heartdance

can we approve this? very needed for us to pass the baseurl since we can redirect to other host

ruofeilyu avatar Jun 23 '23 04:06 ruofeilyu

Closing this because it's already possible to set the base url via Retrofit.newBuilder.

I don't want to add any features just to circumvent OpenAI's deliberate country restrictions

TheoKanning avatar Jul 15 '23 00:07 TheoKanning