From 2f48fc1d4c80a4c25a04d5f4e1e6c19fbb3528db Mon Sep 17 00:00:00 2001
From: hit-cxf <2024111082@stu.hit.edu.cn>
Date: Thu, 23 Apr 2026 11:53:33 +0800
Subject: [PATCH] fix: add kimi to models.ts
---
aigc-director/aigc-claw/frontend/lib/workflowApi.ts | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/aigc-director/aigc-claw/frontend/lib/workflowApi.ts b/aigc-director/aigc-claw/frontend/lib/workflowApi.ts
index aab26a8..891cc5d 100644
--- a/aigc-director/aigc-claw/frontend/lib/workflowApi.ts
+++ b/aigc-director/aigc-claw/frontend/lib/workflowApi.ts
@@ -19,9 +19,8 @@
export interface ProjectStatus {
session_id: string;
current_stage: string;
- status: string;
+ status: Record<string, string>;
error: string | null;
- stages_completed: string[];
}
export interface StreamEvent {
@@ -53,6 +52,7 @@
export async function startProject(params: {
idea: string;
+ file_path?: string;
style?: string;
video_ratio?: string;
llm_model?: string;
@@ -62,6 +62,9 @@
video_model?: string;
scene_number?: number;
enable_concurrency?: boolean;
+ web_search?: boolean;
+ expand_idea?: boolean;
+ episodes?: number;
}): Promise<{ session_id: string; status: string; params: any }> {
const resp = await fetch('/api/project/start', {
method: 'POST',
@@ -149,12 +152,10 @@
export async function deleteSession(
sessionId: string,
- password: string,
): Promise<{ status: string }> {
const resp = await fetch(`/api/sessions/${sessionId}`, {
method: 'DELETE',
headers: { 'Content-Type': 'application/json' },
- body: JSON.stringify({ password }),
});
if (!resp.ok) {
const err = await resp.json().catch(() => ({ detail: '删除失败' }));
--
Gitblit v1.8.0