MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / useUpdateModel

Function useUpdateModel

apps/web/src/app/admin/api/model-stats/hooks.ts:49–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47};
48
49export function useUpdateModel() {
50 const trpc = useTRPC();
51 const queryClient = useQueryClient();
52
53 return useMutation(
54 trpc.admin.modelStats.update.mutationOptions({
55 onSuccess: () => {
56 void queryClient.invalidateQueries({ queryKey: [['admin', 'modelStats', 'list']] });
57 },
58 })
59 );
60}
61
62export function useTriggerStatsUpdate() {
63 const trpc = useTRPC();

Callers 1

ModelStatsTableFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected