compeleted ai

This commit is contained in:
hamid zarghami
2026-07-23 11:14:07 +03:30
parent e10177a788
commit a9fc7c4ff7
6 changed files with 95 additions and 19 deletions
@@ -0,0 +1,8 @@
import { useMutation } from "@tanstack/react-query";
import * as api from "../service/AiService";
export const useChat = () => {
return useMutation({
mutationFn: api.chat,
});
};