Files
tuanwei-admin/src/api/ai/manuscriptGen/model/index.ts
T
weicw-dshsa d8ef29afe7 feat(ai): 写作模式拆成自由创作与模板两条路(issue 18)
自由创作不再解析自然语言:原话整段作为 userContent 下发,docType 留空,由后端转
「AI 创意助手」。选了文体才提交 docType 等结构化条件,走「内容创作与宣传助手」。

- writing-params.ts 删掉 parseWritingRequest、字段别名表与字数兜底表,只留选项常量。
- chatgpt/index.vue:字数选择器只在选中文体后出现;撤掉图片比例选择器(上游开始
  节点无比例变量,只能拼进 user_content,等于替上游写 prompt);结果不再用入参补标题。
- gxmu/manuscriptGen:新增「自由创作」入口与 freeContent 文本域,模板模式才展开活动
  信息等可选项。
- 顺带删除 chatgpt/index.bak.vue 旧备份。
2026-10-21 12:39:54 +08:00

19 lines
566 B
TypeScript

import type { FileRecord } from '@/api/system/file/model';
export interface ManuscriptGenParams {
/** 文稿模板;留空表示自由创作,后端会转「AI 创意助手」 */
docType?: string;
/** 自由创作时用户想写的内容,转创意助手后作为 user_content 下发 */
userContent?: string;
eventType?: string;
theme?: string;
time?: string;
location?: string;
participants?: string;
highlights?: string;
number?: number;
files?: Partial<FileRecord>[];
}
export type ManuscriptGenResult = string | Record<string, any>;