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

Function updateChatUsageLimitConfig

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

Source from the content-addressed store, hash-verified

1929});
1930
1931export const updateChatUsageLimitConfig = (queryClient: QueryClient) => ({
1932 mutationFn: (req: TypesGen.ChatUsageLimitConfig) =>
1933 API.experimental.updateChatUsageLimitConfig(req),
1934 onSuccess: async () => {
1935 await queryClient.invalidateQueries({
1936 queryKey: chatUsageLimitConfigKey,
1937 });
1938 },
1939});
1940
1941type UpsertChatUsageLimitOverrideMutationArgs = {
1942 userID: string;

Callers 1

AgentSettingsSpendPageFunction · 0.90

Calls 1

Tested by

no test coverage detected