Exit on error
This commit is contained in:
parent
4487b920ec
commit
8951a8bf07
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue