MCPcopy Index your code
hub / github.com/coder/coder / chatPromptsQuery

Function chatPromptsQuery

site/src/api/queries/chats.ts:641–647  ·  view source on GitHub ↗
(chatId: string)

Source from the content-addressed store, hash-verified

639const PROMPTS_STALE_MS = 30_000;
640
641export 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
649export const archiveChat = (queryClient: QueryClient) => ({
650 mutationFn: (chatId: string) =>

Callers 1

ChatPageInputFunction · 0.90

Calls 1

chatPromptsKeyFunction · 0.85

Tested by

no test coverage detected