mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Exit on error
This commit is contained in:
@@ -453,13 +453,14 @@
|
||||
const response = await fetch(getApiBase() + getEndpointCompletions(), fetchOptions)
|
||||
if (!response.ok) {
|
||||
await handleError(response)
|
||||
} else {
|
||||
const json = await response.json()
|
||||
// Remove updating indicator
|
||||
updating = false
|
||||
updatingMessage = ''
|
||||
chatResponse.updateFromSyncResponse(json)
|
||||
scrollToBottom()
|
||||
}
|
||||
const json = await response.json()
|
||||
// Remove updating indicator
|
||||
updating = false
|
||||
updatingMessage = ''
|
||||
chatResponse.updateFromSyncResponse(json)
|
||||
scrollToBottom()
|
||||
}
|
||||
} catch (e) {
|
||||
// console.error(e)
|
||||
|
||||
Reference in New Issue
Block a user