🐛 fix(formModal): update last message prompt when data type is "stream" and isStream is true to display the correct prompt
This commit is contained in:
parent
2a783d34a9
commit
d8eabdb7b9
1 changed files with 1 additions and 0 deletions
|
|
@ -272,6 +272,7 @@ export default function FormModal({
|
|||
}
|
||||
if (data.type === "stream" && isStream) {
|
||||
if (data.prompt) {
|
||||
updateLastMessage({ prompt: data.prompt });
|
||||
} else {
|
||||
updateLastMessage({ str: data.message });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue