Commit 50a91ff5 by Liu

feat:增加不调用推荐问接口时机

parent e17c6656
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment