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
c34a0995
Commit
c34a0995
authored
Mar 25, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置文件
parent
c79a71e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
robot-trans-manager/pom.xml
robot-trans-manager/pom.xml
+2
-2
robot-trans-manager/src/main/java/com/mortals/xhx/webflux/template/AbstractFlowChatTemplate.java
...ortals/xhx/webflux/template/AbstractFlowChatTemplate.java
+6
-3
No files found.
robot-trans-manager/pom.xml
View file @
c34a0995
...
...
@@ -48,9 +48,9 @@
<profiles.datasource.password>
12345678
</profiles.datasource.password>
<profiles.publish.path>
E:\pic\publish\
</profiles.publish.path>
<profiles.filepath>
E:/mortals/app/data
</profiles.filepath>
<profiles.chat.streamChatUrl>
http
://chat.scsmile.cn/api/v1/chat/completion
s
</profiles.chat.streamChatUrl>
<profiles.chat.streamChatUrl>
http
s://agent.wx3.com.cn:443/v1/chat-message
s
</profiles.chat.streamChatUrl>
<profiles.chat.auth-head>
Authorization
</profiles.chat.auth-head>
<profiles.chat.auth-value>
Bearer
fastgpt-jZqZqjWQOic82RbTFdzAu94ddX0YL0ZWfBUtYAcVtewIkXe0yUfH
</profiles.chat.auth-value>
<profiles.chat.auth-value>
Bearer
app-ritPdgkz8bsrfzpcJdSTkUF5
</profiles.chat.auth-value>
</properties>
</profile>
<profile>
...
...
robot-trans-manager/src/main/java/com/mortals/xhx/webflux/template/AbstractFlowChatTemplate.java
View file @
c34a0995
...
...
@@ -35,7 +35,9 @@ public abstract class AbstractFlowChatTemplate implements IFlowChat, FlowChatCal
@PostConstruct
private
void
init
()
{
webClient
=
WebClient
.
builder
()
webClient
=
WebClient
.
builder
()
.
baseUrl
(
"https://agent.wx3.com.cn"
)
.
defaultHeader
(
HttpHeaders
.
CONTENT_TYPE
,
"application/json"
).
build
();
}
...
...
@@ -109,8 +111,9 @@ public abstract class AbstractFlowChatTemplate implements IFlowChat, FlowChatCal
*/
private
Flux
<
String
>
doRequest
(
FlowChatContext
context
,
FLowChatRequest
request
,
HttpHeaders
headers
)
{
log
.
info
(
"请求大模型开始,URL:{}, 参数:{}"
,
request
.
getUrl
(),
request
.
getJsonBody
());
Flux
<
String
>
flux
=
webClient
.
post
()
.
uri
(
request
.
getUrl
())
Flux
<
String
>
flux
=
webClient
.
post
()
.
uri
(
"/v1/chat-messages"
)
.
accept
(
MediaType
.
TEXT_EVENT_STREAM
)
.
headers
(
httpHeaders
->
httpHeaders
.
addAll
(
headers
))
.
bodyValue
(
request
.
getJsonBody
())
...
...
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