kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
Merge pull request #249 from czzonet/main
commit
1923f775e1
|
@ -150,7 +150,13 @@ export async function browserPostEventStream(
|
||||||
messageId
|
messageId
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
|
const checkJson = JSON.parse(data)
|
||||||
|
} catch (error) {
|
||||||
|
console.log('warning: parse error.')
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const convoResponseEvent: types.ConversationResponseEvent =
|
const convoResponseEvent: types.ConversationResponseEvent =
|
||||||
JSON.parse(data)
|
JSON.parse(data)
|
||||||
|
|
Ładowanie…
Reference in New Issue