feat: support var in suggested questions (#17340)
Co-authored-by: crazywoola <427733928@qq.com>
This commit is contained in:
parent
9a9ec0c99b
commit
fe4e2f7921
20 changed files with 22 additions and 5 deletions
|
|
@ -92,7 +92,7 @@ export const useChat = (
|
|||
ret[index] = {
|
||||
...ret[index],
|
||||
content: getIntroduction(config.opening_statement),
|
||||
suggestedQuestions: config.suggested_questions,
|
||||
suggestedQuestions: config.suggested_questions?.map((item: string) => getIntroduction(item)),
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
@ -101,7 +101,7 @@ export const useChat = (
|
|||
content: getIntroduction(config.opening_statement),
|
||||
isAnswer: true,
|
||||
isOpeningStatement: true,
|
||||
suggestedQuestions: config.suggested_questions,
|
||||
suggestedQuestions: config.suggested_questions?.map((item: string) => getIntroduction(item)),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue