Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
优化流式卡在一般没有反应
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanyutin753 committed Jan 17, 2024
1 parent 968c59b commit 389a4b0
Show file tree
Hide file tree
Showing 8 changed files with 289 additions and 211 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@
import com.tokensTool.pandoraNext.interceptor.LoginCheckInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.concurrent.TimeUnit;

@Configuration
public class WebConfig implements WebMvcConfigurer {

@Autowired
private LoginCheckInterceptor loginCheckInterceptor;

@Override
public void configureAsyncSupport(AsyncSupportConfigurer configurer) {
// 设置默认异步请求超时时间,例如设置为6分钟
configurer.setDefaultTimeout(TimeUnit.MINUTES.toMillis(6));
}
@Override
public void addInterceptors(InterceptorRegistry registry) {
registry.addInterceptor(loginCheckInterceptor).addPathPatterns("/api/**");
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void main(String[] args) {
log.info("\n--------------------------------------------------------------\n" +
"PandoraNext-tokensTool v 0.6.7版本\n" +
"1.优化添加进one-api的代码,使得id不一直增加\n" +
"2.优化copilot,cocopilot的chat接口\n" +
"2.优化copilot,cocopilot的chat,embeddings接口,接受高并发\n" +
"3.修复历史问题bug,优化代码,优化前端\n" +
"--------------------------------------------------------------\n");
// 启动
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified rearServer/target/pandoraNext-0.6.7-SNAPSHOT.jar
Binary file not shown.
Binary file modified simplyDeploy/pandoraNext-0.6.7-SNAPSHOT.jar
Binary file not shown.

0 comments on commit 389a4b0

Please sign in to comment.