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
50a91ff5
Commit
50a91ff5
authored
Feb 27, 2026
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:增加不调用推荐问接口时机
parent
e17c6656
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/pages/Chat/components/ChatItem/ChatAnswerRecommend.tsx
+1
-1
No files found.
src/pages/Chat/components/ChatItem/ChatAnswerRecommend.tsx
View file @
50a91ff5
...
...
@@ -18,7 +18,7 @@ export const ChatAnswerRecommend: React.FC<ChatAnswerRecommendProps> = ({ answer
const
getAnswerRecommend
=
async
()
=>
{
// 若回答内容包含以下关键字,则不再请求推荐问题接口
const
content
=
answer
?.
answer
||
''
const
blockKeywords
=
[
'抱歉'
,
'LLM响应异常'
,
'QPM最大流量限制'
,
'请求时间超时'
]
const
blockKeywords
=
[
'抱歉'
,
'LLM响应异常'
,
'QPM最大流量限制'
,
'请求时间超时'
,
'该请求超出我的响应范围'
]
const
shouldBlock
=
blockKeywords
.
some
(
keyword
=>
content
.
includes
(
keyword
))
if
(
shouldBlock
)
{
onLoadingChange
?.(
false
)
...
...
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