Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
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
侯明涛
sdream-ai-fe
Commits
6eea50cc
Commit
6eea50cc
authored
Dec 30, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:提问接口增加参数
parent
fb8727df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
src/pages/Chat/Chat.tsx
+17
-4
No files found.
src/pages/Chat/Chat.tsx
View file @
6eea50cc
...
...
@@ -283,15 +283,28 @@ export const Chat: React.FC = () => {
fetchUrl
=
proxy
+
fetchUrl
fetchStreamResponse
(
fetchUrl
,
{
// 根据 toolId 添加相应的参数
const
requestBody
:
Record
<
string
,
any
>
=
{
question
,
conversationId
:
currentIdRef
.
current
,
stream
:
true
,
productCode
,
toolId
:
resolvedToolId
,
},
}
// 提质增效:toolId 为 6712395743241
if
(
resolvedToolId
===
'6712395743241'
)
{
requestBody
.
busiType
=
'01'
requestBody
.
recordType
=
'B00'
}
// 数据助手:toolId 为 6712395743240
else
if
(
resolvedToolId
===
'6712395743240'
)
{
requestBody
.
busiType
=
'01'
}
fetchStreamResponse
(
fetchUrl
,
requestBody
,
(
msg
)
=>
{
// 检查是否已被取消
if
(
abortControllerRef
.
current
?.
signal
.
aborted
)
{
...
...
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