Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
robot-trans-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
robot-trans-platform
Commits
3bd1ed52
Commit
3bd1ed52
authored
Mar 25, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件
parent
2d43f251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
robot-trans-manager/src/main/java/com/mortals/xhx/thread/ChatMsgRspThread.java
...rc/main/java/com/mortals/xhx/thread/ChatMsgRspThread.java
+4
-3
No files found.
robot-trans-manager/src/main/java/com/mortals/xhx/thread/ChatMsgRspThread.java
View file @
3bd1ed52
...
...
@@ -2,6 +2,7 @@ package com.mortals.xhx.thread;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.mortals.xhx.webflux.factory.FlowChatContext
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -55,16 +56,16 @@ public class ChatMsgRspThread implements Runnable {
obj
.
put
(
"delta"
,
delta
);
obj
.
put
(
"index"
,
0
);
obj
.
put
(
"finish_reason"
,
"null"
);
obj
.
put
(
"finish_reason"
,
null
);
jsonArray
.
add
(
obj
);
rspJson
.
put
(
"choices"
,
jsonArray
);
rspJson
.
put
(
"object"
,
""
);
log
.
info
(
"快速响应线程写入数据,rsp:{}"
,
rspJson
.
toJSONString
());
log
.
info
(
"快速响应线程写入数据,rsp:{}"
,
rspJson
.
toJSONString
(
SerializerFeature
.
WriteMapNullValue
));
// context.getEmitter().next("data:"+rspJson.toJSONString());
context
.
getEmitter
().
next
(
rspJson
.
toJSONString
());
context
.
getEmitter
().
next
(
rspJson
.
toJSONString
(
SerializerFeature
.
WriteMapNullValue
));
reCount
++;
try
{
Thread
.
sleep
(
1000
);
...
...
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