mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
Merge branch 'ikechan8370:v2' into v2
This commit is contained in:
commit
48518b49c5
5 changed files with 27 additions and 23 deletions
|
|
@ -3,9 +3,12 @@
|
|||
* @param msg
|
||||
*/
|
||||
export function filterResponseChunk (msg) {
|
||||
if (!msg || typeof msg !== 'string') {
|
||||
if (!msg) {
|
||||
return false
|
||||
}
|
||||
if (typeof msg !== 'string') {
|
||||
return msg
|
||||
}
|
||||
if (!msg.trim()) {
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue