Use new HTTP stream format within the new UX

Use updated format for HTTP streamed responses from the Khoj server in the new chat UX
Remove references to the websocket connected field, as websocket use has been deprecated
This commit is contained in:
sabaimran
2024-08-02 02:35:10 -07:00
committed by GitHub
23 changed files with 368 additions and 392 deletions

View File

@@ -271,7 +271,7 @@ interface TokenObject {
name: string;
}
export const useApiKeys = () => {
const useApiKeys = () => {
const [apiKeys, setApiKeys] = useState<TokenObject[]>([]);
const { toast } = useToast();
@@ -649,7 +649,6 @@ export default function SettingsView() {
</title>
<div className={styles.sidePanel}>
<SidePanel
webSocketConnected={true}
conversationId={null}
uploadedFiles={[]}
isMobileWidth={isMobileWidth}