File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/client/components/Chat Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,14 @@ export const handleCompletionStreamError = (err: any, file: string) => {
9
9
console . log ( 'Error in completion stream: ' , err )
10
10
const error = err ?. response ?. data || err . message
11
11
12
+ //there is an error code 'Creating a stream took too long' which happens with slow internet connections
13
+ //might want to show a loading spinner when it happens
12
14
if ( error === 'Model maximum context reached' && file ) {
13
15
enqueueSnackbar ( t ( 'error:tooLargeFile' ) , { variant : 'error' } )
14
16
} else if ( error === 'Error parsing file' && file ) {
15
17
enqueueSnackbar ( t ( 'error:fileParsingError' ) , { variant : 'error' } )
16
18
} else {
17
- console . log ( 'Unexpected error in completion stream: ' , error )
19
+ // console.log('Unexpected error in completion stream: ', error)
18
20
//enqueueSnackbar(t('error:unexpected'), { variant: 'error' })
19
21
}
20
22
}
You can’t perform that action at this time.
0 commit comments