mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
fix: filter empty
This commit is contained in:
parent
314c60d0ae
commit
cce3f2c28c
1 changed files with 1 additions and 1 deletions
|
|
@ -175,7 +175,7 @@ export class bym extends plugin {
|
||||||
* @param msg
|
* @param msg
|
||||||
*/
|
*/
|
||||||
function filterResponseChunk (msg) {
|
function filterResponseChunk (msg) {
|
||||||
if (!msg) {
|
if (!msg || typeof msg !== 'string') {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (msg.trim() === '```') {
|
if (msg.trim() === '```') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue