Commit c02dfce9 by Liu

fix:自动提问时不展示question

parent 5b8c978b
......@@ -390,7 +390,8 @@ export const TacticsChat: React.FC = () => {
requestBody.description ??= '02'
requestBody.busiId ??= tacticsMeta.taskId
}
if (shouldSendQuestion) {
// 如果 includeQuestion 为 false,不展示问题但接口参数中仍要传递 question
if (shouldSendQuestion || (question && extra?.includeQuestion === false)) {
requestBody.question = question ?? ''
}
fetchStreamResponse(
......@@ -600,7 +601,7 @@ export const TacticsChat: React.FC = () => {
{
busiType: '02',
numberType: mappedNumberType,
includeQuestion: true,
includeQuestion: false,
includeTacticsMeta: false,
includeUserMeta: true,
},
......@@ -614,7 +615,7 @@ export const TacticsChat: React.FC = () => {
{
busiType: '02',
recordType: 'A02',
includeQuestion: true,
includeQuestion: false,
includeTacticsMeta: true,
},
)
......
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