replace imperative fetch with tanstak

This commit is contained in:
thierryverse 2025-11-19 09:32:20 +02:00
parent 373bd668f7
commit ff73272da5
2 changed files with 1 additions and 60 deletions

View file

@ -8,7 +8,7 @@ import { createChatMutationAtom, updateChatMutationAtom } from "@/atoms/chats/ch
import { activeChatAtom } from "@/atoms/chats/chat-query.atoms";
import { activeChatIdAtom } from "@/atoms/chats/ui.atoms";
import ChatInterface from "@/components/chat/ChatInterface";
import { useChatAPI, useChatState } from "@/hooks/use-chat";
import { useChatState } from "@/hooks/use-chat";
import { useDocumentTypes } from "@/hooks/use-document-types";
import type { Document } from "@/hooks/use-documents";
import { useSearchSourceConnectors } from "@/hooks/use-search-source-connectors";
@ -44,11 +44,6 @@ export default function ResearcherPage() {
chat_id: activeChatId ?? undefined,
});
// const { updateChat } = useChatAPI({
// token,
// search_space_id: search_space_id as string,
// });
// Fetch all available sources (document types + live search connectors)
const { documentTypes } = useDocumentTypes(Number(search_space_id));
const { connectors: searchConnectors } = useSearchSourceConnectors(