Download frontend/hooks/useChatQueries.ts from jessejohnson/plg4-dev-server: direct link, hf CLI and curl.
- Browser
- Download file 411 Bytes
-
https://huggingface.co/spaces/jessejohnson/plg4-dev-server/resolve/main/frontend/hooks/useChatQueries.ts
- Command line
-
hf download hf://spaces/jessejohnson/plg4-dev-server/frontend/hooks/useChatQueries.ts
-
curl -L -o useChatQueries.ts https://huggingface.co/spaces/jessejohnson/plg4-dev-server/resolve/main/frontend/hooks/useChatQueries.ts
411 Bytes
| import { chatService } from "@/services/chat-service"; | |
| import { useQuery } from "@tanstack/react-query"; | |
| export const chatKeys = { | |
| all: ["chat"] as const, | |
| }; | |
| // TODO: DELETE and replace with actual hook implementation | |
| export function useChatMessage() { | |
| return useQuery({ | |
| queryKey: chatKeys.all, | |
| queryFn: chatService.getMessage, | |
| staleTime: 5 * 60 * 1000, // 5 minutes | |
| retry: false, | |
| }); | |
| } | |