Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
deep-ask
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
deepseek
deep-ask
Commits
4122cde8
Commit
4122cde8
authored
Feb 27, 2025
by
luojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结束标识
parent
0785404c
Pipeline
#6409
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
DeepSeekAiListener.java
src/main/java/admin/listener/DeepSeekAiListener.java
+7
-1
No files found.
src/main/java/admin/listener/DeepSeekAiListener.java
View file @
4122cde8
...
...
@@ -57,7 +57,13 @@ public class DeepSeekAiListener extends EventSourceListener {
MaxdbStreamResponse
completionResponse
=
gson
.
fromJson
(
data
,
MaxdbStreamResponse
.
class
);
if
(
completionResponse
.
getIsEnd
())
{
log
.
info
(
"DeepSeek返回数据结束了...onEvent"
);
textToSpeechService
.
convertTextToSpeech
(
this
.
stringBuffer
.
toString
());
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"action"
,
"done"
);
map
.
put
(
"type"
,
"text"
);
map
.
put
(
"content"
,
completionResponse
.
getContent
());
String
msg
=
JSON
.
toJSONString
(
map
);
this
.
session
.
getBasicRemote
().
sendText
(
msg
);
// textToSpeechService.convertTextToSpeech(this.stringBuffer.toString());
return
;
}
if
(
completionResponse
.
getContent
()!=
null
){
...
...
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