Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eac0c7e2
authored
Apr 01, 2026
by
Jony.L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
智谱多轮对话 conversationId不能为空
parent
de9fb195
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
computility-module-external/src/main/java/com/luhu/computility/module/external/controller/openapi/service/OpenApiServiceImpl.java
+4
-0
No files found.
computility-module-external/src/main/java/com/luhu/computility/module/external/controller/openapi/service/OpenApiServiceImpl.java
View file @
eac0c7e2
package
com
.
luhu
.
computility
.
module
.
external
.
controller
.
openapi
.
service
;
package
com
.
luhu
.
computility
.
module
.
external
.
controller
.
openapi
.
service
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.json.JSONArray
;
import
cn.hutool.json.JSONArray
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
...
@@ -639,6 +640,9 @@ public class OpenApiServiceImpl implements OpenApiService {
...
@@ -639,6 +640,9 @@ public class OpenApiServiceImpl implements OpenApiService {
@Override
@Override
public
SseEmitter
zhipuMultiStreamChat
(
ZhipuConversationReqDTO
zhipuConversationReqDTO
)
{
public
SseEmitter
zhipuMultiStreamChat
(
ZhipuConversationReqDTO
zhipuConversationReqDTO
)
{
if
(
ObjectUtil
.
isEmpty
(
zhipuConversationReqDTO
.
getConversationId
().
trim
())){
throw
new
ServiceException
(
"多轮对话接口中conversationId不能为空!"
);
}
SseEmitter
emitter
=
new
SseEmitter
(
Long
.
MAX_VALUE
);
SseEmitter
emitter
=
new
SseEmitter
(
Long
.
MAX_VALUE
);
ExecutorService
executorService
=
Executors
.
newSingleThreadExecutor
();
ExecutorService
executorService
=
Executors
.
newSingleThreadExecutor
();
executorService
.
submit
(()
->
{
executorService
.
submit
(()
->
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment