openai-java
openai-java copied to clipboard
Enable user custom baseUrl of OpenAiService in the service package
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.
很需要
请求审核合并
can we approve this? very needed for us to pass the baseurl since we can redirect to other host
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