Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-ai
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-ai
Commits
0ec64f2c
Commit
0ec64f2c
authored
Mar 31, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置
parent
78b826fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
.idea/ProjectStorage.xml
+8
-0
yd-ai-api/src/main/java/com/yd/ai/api/controller/AiStreamController.java
+1
-1
No files found.
.idea/ProjectStorage.xml
0 → 100644
View file @
0ec64f2c
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ProjectStorage"
>
<option
name=
"path"
value=
"项目群组->银盾-微服务"
/>
<option
name=
"projectId"
value=
"4cc05386e898000"
/>
</component>
</project>
\ No newline at end of file
yd-ai-api/src/main/java/com/yd/ai/api/controller/AiStreamController.java
View file @
0ec64f2c
...
@@ -25,7 +25,7 @@ public class AiStreamController {
...
@@ -25,7 +25,7 @@ public class AiStreamController {
Message
systemMsg
=
Message
.
builder
().
role
(
Role
.
SYSTEM
.
getValue
()).
content
(
"You are a helpful assistant."
).
build
();
Message
systemMsg
=
Message
.
builder
().
role
(
Role
.
SYSTEM
.
getValue
()).
content
(
"You are a helpful assistant."
).
build
();
Message
userMsg
=
Message
.
builder
().
role
(
Role
.
USER
.
getValue
()).
content
(
question
).
build
();
Message
userMsg
=
Message
.
builder
().
role
(
Role
.
USER
.
getValue
()).
content
(
question
).
build
();
GenerationParam
param
=
GenerationParam
.
builder
()
GenerationParam
param
=
GenerationParam
.
builder
()
.
apiKey
(
"
your-api-key
"
)
.
apiKey
(
"
sk-d6551c67cfbe4a759a78dc3625729291
"
)
.
model
(
"qwen-plus"
)
.
model
(
"qwen-plus"
)
.
messages
(
Arrays
.
asList
(
systemMsg
,
userMsg
))
.
messages
(
Arrays
.
asList
(
systemMsg
,
userMsg
))
.
resultFormat
(
GenerationParam
.
ResultFormat
.
MESSAGE
)
.
resultFormat
(
GenerationParam
.
ResultFormat
.
MESSAGE
)
...
...
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