task v2 refactor part 9: ObserverTask -> TaskV2 in frontend code (#1822)

This commit is contained in:
Shuchang Zheng
2025-02-28 00:00:59 -05:00
committed by GitHub
parent 14689b53e4
commit 2849a3dc6c
5 changed files with 12 additions and 13 deletions

View File

@@ -1,7 +1,7 @@
import { getClient } from "@/api/AxiosClient";
import {
Createv2TaskRequest,
ObserverTask,
TaskV2,
ProxyLocation,
TaskGenerationApiResponse,
} from "@/api/types";
@@ -156,7 +156,7 @@ function PromptBox() {
const startObserverCruiseMutation = useMutation({
mutationFn: async (prompt: string) => {
const client = await getClient(credentialGetter, "v2");
return client.post<Createv2TaskRequest, { data: ObserverTask }>(
return client.post<Createv2TaskRequest, { data: TaskV2 }>(
"/tasks",
{
user_prompt: prompt,