This commit is contained in:
StyleZhang
2024-03-20 16:24:38 +08:00
parent 18883d9faa
commit 2919cc9adf
9 changed files with 37 additions and 27 deletions

View File

@ -38,8 +38,8 @@ const ChatWrapper = forwardRef<ChatWrapperRefType>((_, ref) => {
const config = useMemo(() => {
return {
opening_statement: features.opening.opening_statement,
suggested_questions: features.opening.suggested_questions,
opening_statement: features.opening?.opening_statement || '',
suggested_questions: features.opening?.suggested_questions || [],
suggested_questions_after_answer: features.suggested,
text_to_speech: features.text2speech,
speech_to_text: features.speech2text,