Allow custom base URL for OpenAiService#2
Conversation
update openai-java version include .vscode in gitignore
|
兄弟你这编译出来好像报错啊 |
|
具体报的什么错呢?我在本地编译运行没问题的 |
log找不到了,大佬要不发一下你的? |
|
[23:01:58 WARN]: Unexpected exception while parsing console command "craftgpt" |
|
[23:03:15 ERROR]: Error occurred while enabling CraftGPT v1.3 (Is it up to date?) |
|
Java 17 + 最新版 paper/purpur(不改配置)+ CraftGPT(不加其它插件)可以正常运行,检查一下是不是服务器配置问题或者有插件冲突 |
|
大佬私发一下你编译的吧 |
|
|
Sorry for such a long wait. The plugin was updated. |
According to TheoKanning/openai-java#234, it is possible to use a custom base URL (e.g. https://api.openai-proxy.com/) to replace OpenAI's official API (https://api.openai.com/). This can resolve certain issues like the one mentioned in #1.
P.S. there's a pull request for openai-java that could simplify the implementation, but it's not merged yet.