update:1.更新灵感模式

This commit is contained in:
xiamuceer
2025-11-14 17:16:24 +08:00
parent 700340c103
commit 8ec8526072
6 changed files with 1409 additions and 10 deletions
+32
View File
@@ -406,6 +406,38 @@ export const polishApi = {
polishBatch: (texts: string[]) =>
api.post<unknown, { polished_texts: string[] }>('/polish/batch', { texts }),
};
export const inspirationApi = {
// 生成选项建议
generateOptions: (data: {
step: 'title' | 'description' | 'theme' | 'genre';
context: {
title?: string;
description?: string;
theme?: string;
};
}) =>
api.post<unknown, {
prompt?: string;
options: string[];
error?: string;
}>('/inspiration/generate-options', data),
// 智能补全缺失信息
quickGenerate: (data: {
title?: string;
description?: string;
theme?: string;
genre?: string | string[];
}) =>
api.post<unknown, {
title: string;
description: string;
theme: string;
genre: string[];
narrative_perspective: string;
}>('/inspiration/quick-generate', data),
};
export default api;