mirror of
https://github.com/YuWanTingbb/unofficial-gpt4.git
synced 2025-10-16 23:14:06 +00:00
gpt4-copilot-java v0.2.7
增加请求json不匹配返回500报错
This commit is contained in:
@@ -12,7 +12,7 @@ ENV TZ=Asia/Shanghai
|
||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
# 复制JAR文件到容器的/app目录下
|
||||
COPY /target/gpt-4-copilot-0.2.6.jar app.jar
|
||||
COPY /target/gpt-4-copilot-0.2.7.jar app.jar
|
||||
|
||||
# 声明服务运行在8081端口
|
||||
EXPOSE 8081
|
||||
|
2
pom.xml
2
pom.xml
@@ -10,7 +10,7 @@
|
||||
</parent>
|
||||
<groupId>com.gpt4.copilot</groupId>
|
||||
<artifactId>gpt-4-copilot</artifactId>
|
||||
<version>0.2.6</version>
|
||||
<version>0.2.7</version>
|
||||
<name>native</name>
|
||||
<description>Demo project for Spring Boot with GraalVM Native Image</description>
|
||||
<properties>
|
||||
|
@@ -25,10 +25,10 @@ public class CustomErrorController implements ErrorController {
|
||||
" <title>Document</title>\n" +
|
||||
"</head>\n" +
|
||||
"<body>\n" +
|
||||
" <p>Thanks you use gpt4-copilot-java-0.2.6</p>\n" +
|
||||
" <p>Thanks you use gpt4-copilot-java-0.2.7</p>\n" +
|
||||
" <p><a href=\"https://apifox.com/apidoc/shared-4301e565-a8df-48a0-85a5-bda2c4c3965a\">详细使用文档</a></p>\n" +
|
||||
" <p><a href=\"https://github.com/Yanyutin753/unofficial-gpt4-api\">项目地址</a></p>\n" +
|
||||
"</body>\n" +
|
||||
"</html>\n", HttpStatus.OK);
|
||||
"</html>\n", HttpStatus.INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
}
|
@@ -298,9 +298,10 @@ public class copilotApplication {
|
||||
System.out.println("one_selfCopilot_limit:" + ChatController.getSystemSetting().getOne_selfCopilot_limit());
|
||||
System.out.println("gpt4-copilot-java 初始化接口成功!");
|
||||
System.out.println("======================================================");
|
||||
System.out.println("******原神gpt4-copilot-java v0.2.6启动成功******");
|
||||
System.out.println("******原神gpt4-copilot-java v0.2.7启动成功******");
|
||||
System.out.println("* 由于本人略菜,graalvm依赖问题无法解决,之后代码将只通过jar和docker的形式运行");
|
||||
System.out.println("* 适配最新的ui Open Webui");
|
||||
System.out.println("* 增加请求json不匹配返回500报错");
|
||||
System.out.println("* 同时适配最新的UI Open Webui 里的/v1/embeddings接口");
|
||||
System.out.println("URL地址:http://0.0.0.0:" + config.getServerPort() + config.getPrefix() + "");
|
||||
System.out.println("======================================================");
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,3 @@
|
||||
artifactId=gpt-4-copilot
|
||||
groupId=com.gpt4.copilot
|
||||
version=0.2.6
|
||||
version=0.2.7
|
||||
|
Reference in New Issue
Block a user