|
|
@ -42,7 +42,7 @@ public class SparkGptClient implements InitializingBean {
|
|
|
|
// 初始化缓存
|
|
|
|
// 初始化缓存
|
|
|
|
HistoryCache.init(sparkGptProperties.getCache_timeout(), sparkGptProperties.getCache_context());
|
|
|
|
HistoryCache.init(sparkGptProperties.getCache_timeout(), sparkGptProperties.getCache_context());
|
|
|
|
// 初始化 authUrl
|
|
|
|
// 初始化 authUrl
|
|
|
|
// log.info("[SPARK CHAT] 鉴权 endpoint : {}", this.authUrl);
|
|
|
|
// log.info("[SPARK CHAT] 鉴权 endpoint : {}", this.authUrl);
|
|
|
|
this.okHttpClient = new OkHttpClient.Builder()
|
|
|
|
this.okHttpClient = new OkHttpClient.Builder()
|
|
|
|
.connectTimeout(180, TimeUnit.SECONDS)
|
|
|
|
.connectTimeout(180, TimeUnit.SECONDS)
|
|
|
|
.readTimeout(180, TimeUnit.SECONDS) // sse 接口的 readTimeout 不能设置小了
|
|
|
|
.readTimeout(180, TimeUnit.SECONDS) // sse 接口的 readTimeout 不能设置小了
|
|
|
|