take model for /ai/chat

This commit is contained in:
2026-01-31 14:16:29 +00:00
parent 95beddaa6c
commit f6d74927d6
3 changed files with 4 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ import type { ChatRequest, ChatResponse, ModelsResponse } from "@sprint/shared";
import { useMutation } from "@tanstack/react-query";
import { apiClient } from "@/lib/server";
export function useChatMutation() {
export function useChat() {
return useMutation<ChatResponse, Error, ChatRequest>({
mutationKey: ["ai", "chat"],
mutationFn: async (input) => {