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

Function deleteUserChatProviderKey

site/src/api/queries/chats.ts:1733–1744  ·  view source on GitHub ↗
(queryClient: QueryClient)

Source from the content-addressed store, hash-verified

1731});
1732
1733export const deleteUserChatProviderKey = (queryClient: QueryClient) => ({
1734 mutationFn: (providerConfigId: string) =>
1735 API.experimental.deleteUserAIProviderKey(providerConfigId),
1736 onSuccess: async () => {
1737 await Promise.all([
1738 queryClient.invalidateQueries({
1739 queryKey: userChatProviderConfigsKey,
1740 }),
1741 queryClient.invalidateQueries({ queryKey: chatModelsKey }),
1742 ]);
1743 },
1744});
1745
1746const invalidateChatConfigurationQueries = async (queryClient: QueryClient) => {
1747 await Promise.all([

Callers 1

AgentSettingsAPIKeysPageFunction · 0.90

Calls 2

allMethod · 0.80

Tested by

no test coverage detected