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

Function useCreateModel

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

Source from the content-addressed store, hash-verified

26};
27
28export function useCreateModel() {
29 const trpc = useTRPC();
30 const queryClient = useQueryClient();
31
32 return useMutation(
33 trpc.admin.modelStats.create.mutationOptions({
34 onSuccess: () => {
35 void queryClient.invalidateQueries({ queryKey: [['admin', 'modelStats', 'list']] });
36 },
37 })
38 );
39}
40
41type UpdateModelInput = {
42 id: string;

Callers 1

ModelStatsTableFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected