Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pms-dispatch-assistant
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜耀祖
pms-dispatch-assistant
Commits
f4d35759
Commit
f4d35759
authored
Aug 26, 2025
by
赵灿灿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改传参
parent
fed83df7
Pipeline
#22579
passed with stages
in 4 minutes and 40 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
LangChainController.java
...chassistant/controller/langchain/LangChainController.java
+5
-4
AgentChatParams.java
...n/langchain/record/conversation/line/AgentChatParams.java
+1
-1
No files found.
src/main/java/com/infoepoch/pms/dispatchassistant/controller/langchain/LangChainController.java
View file @
f4d35759
...
...
@@ -439,10 +439,11 @@ public class LangChainController {
List
<
Map
<
String
,
Object
>>
finalHistoryList
=
historyList
;
new
Thread
(()
->
{
try
{
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
for
(
int
i
=
0
;
i
<
24
;
i
++)
{
String
a
=
"<a href='#tabs-1'>发起调度单</a>"
;
// 这里可以基于keyword, requestId, dialogId处理逻辑,但示例中仅发送简单事件
contentGet
.
append
(
"
当"
+
i
);
emitter
.
send
(
SseEmitter
.
event
().
data
(
"当"
+
i
),
MediaType
.
parseMediaType
(
"application/json; charset=UTF-8"
));
contentGet
.
append
(
"
"
);
emitter
.
send
(
SseEmitter
.
event
().
data
(
a
.
substring
(
i
,
i
+
1
)
),
MediaType
.
parseMediaType
(
"application/json; charset=UTF-8"
));
Thread
.
sleep
(
1000
);
// 每秒发送一个事件
}
emitter
.
send
(
SseEmitter
.
event
().
data
(
"stop"
),
MediaType
.
parseMediaType
(
"application/json; charset=UTF-8"
));
...
...
@@ -889,7 +890,7 @@ public class LangChainController {
agentChatParams
.
setKeyword
(
chatMessage
);
agentChatParams
.
setRequestId
(
getRequestId
());
agentChatParams
.
setDialogId
(
dialogId
);
agentChatParams
.
setHistory
(
"5"
);
agentChatParams
.
setHistory
(
5
);
AgentChatRequest
agentChatRequest
=
new
AgentChatRequest
();
agentChatRequest
.
setCapabilityCode
(
"a3a5a5efd03747faabc83a9424aae85b"
);
//5386f9144ee042578d1c0f66c2598d06
agentChatRequest
.
setCapabilityType
(
"2"
);
...
...
src/main/java/com/infoepoch/pms/dispatchassistant/domain/langchain/record/conversation/line/AgentChatParams.java
View file @
f4d35759
...
...
@@ -43,5 +43,5 @@ public class AgentChatParams {
/**
* 多轮标记 选填 0不开启多轮,5.开启多轮,默认不开启
*/
private
String
history
;
private
int
history
;
}
\ No newline at end of file
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