File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ import { NavigationBar } from "./utils/NavigationBar";
65
65
import { CheckCircleIcon } from "@chakra-ui/icons" ;
66
66
import { Box , useDisclosure , Spinner , useToast } from "@chakra-ui/react" ;
67
67
import mixpanel from "mixpanel-browser" ;
68
- import { CreateCompletionResponseChoicesInner , OpenAI } from "openai-streams" ;
68
+ import { ChatCompletionRequestMessageInner , OpenAI } from "openai-streams" ;
69
69
import { Resizable } from "re-resizable" ;
70
70
import { useEffect , useState , useCallback , useRef } from "react" ;
71
71
import { useBeforeunload } from "react-beforeunload" ;
@@ -392,8 +392,7 @@ function App() {
392
392
"No choices in response. Decoded response: " + JSON . stringify ( decoded )
393
393
) ;
394
394
395
- const choice : CreateChatCompletionStreamResponseChoicesInner =
396
- decoded . choices [ 0 ] ;
395
+ const choice : ChatCompletionRequestMessageInner = decoded . choices [ 0 ] ;
397
396
398
397
if ( choice . index === undefined )
399
398
throw new Error (
You can’t perform that action at this time.
0 commit comments