mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: filter empty message
This commit is contained in:
parent
802776cfa1
commit
43faf96cfe
1 changed files with 4 additions and 1 deletions
|
|
@ -178,6 +178,9 @@ function filterResponseChunk (msg) {
|
||||||
if (!msg || typeof msg !== 'string') {
|
if (!msg || typeof msg !== 'string') {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
if (!msg.trim()) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
if (msg.trim() === '```') {
|
if (msg.trim() === '```') {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue