(chatId: string)
| 639 | const PROMPTS_STALE_MS = 30_000; |
| 640 | |
| 641 | export const chatPromptsQuery = (chatId: string) => ({ |
| 642 | queryKey: chatPromptsKey(chatId), |
| 643 | queryFn: () => |
| 644 | API.experimental.getChatPrompts(chatId, { limit: PROMPT_HISTORY_LIMIT }), |
| 645 | staleTime: PROMPTS_STALE_MS, |
| 646 | enabled: chatId !== "", |
| 647 | }); |
| 648 | |
| 649 | export const archiveChat = (queryClient: QueryClient) => ({ |
| 650 | mutationFn: (chatId: string) => |
no test coverage detected