diff --git a/src/components/App.tsx b/src/components/App.tsx index 8b856c8..4407bd0 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -65,7 +65,7 @@ import { NavigationBar } from "./utils/NavigationBar"; import { CheckCircleIcon } from "@chakra-ui/icons"; import { Box, useDisclosure, Spinner, useToast } from "@chakra-ui/react"; import mixpanel from "mixpanel-browser"; -import { CreateCompletionResponseChoicesInner, OpenAI } from "openai-streams"; +import { ChatCompletionRequestMessageInner, OpenAI } from "openai-streams"; import { Resizable } from "re-resizable"; import { useEffect, useState, useCallback, useRef } from "react"; import { useBeforeunload } from "react-beforeunload"; @@ -392,8 +392,7 @@ function App() { "No choices in response. Decoded response: " + JSON.stringify(decoded) ); - const choice: CreateChatCompletionStreamResponseChoicesInner = - decoded.choices[0]; + const choice: ChatCompletionRequestMessageInner = decoded.choices[0]; if (choice.index === undefined) throw new Error(