Commit effaae97 authored by nick zheng's avatar nick zheng

chore: 应用开场白AI生成增加角色指令字段

parent 2d5ea064
...@@ -88,10 +88,10 @@ export function fetchCreateAgentAvatar<T>(payload: { agentTitle: string; agentDe ...@@ -88,10 +88,10 @@ export function fetchCreateAgentAvatar<T>(payload: { agentTitle: string; agentDe
} }
/** /**
* * @param { agentTitle: 标题 agentDesc: 描述 } * * @param { agentTitle: 标题 agentDesc: 描述 agentSystem: 指令 }
* @returns AI生成开场白 * @returns AI生成开场白
*/ */
export function fetchCreatePreamble<T>(payload: { agentTitle: string; agentDesc: string }) { export function fetchCreatePreamble<T>(payload: { agentTitle: string; agentDesc: string; agentSystem: string }) {
return request.post<T>('/agentApplicationInfoRest/createPreamble.json', payload, { return request.post<T>('/agentApplicationInfoRest/createPreamble.json', payload, {
timeout: 120000, timeout: 120000,
}) })
......
...@@ -198,6 +198,7 @@ async function handleAIGeneratePreamble() { ...@@ -198,6 +198,7 @@ async function handleAIGeneratePreamble() {
const res = await fetchCreatePreamble<string>({ const res = await fetchCreatePreamble<string>({
agentTitle: personalAppConfig.value.baseInfo.agentTitle, agentTitle: personalAppConfig.value.baseInfo.agentTitle,
agentDesc: personalAppConfig.value.baseInfo.agentDesc, agentDesc: personalAppConfig.value.baseInfo.agentDesc,
agentSystem: personalAppConfig.value.baseInfo.agentSystem,
}).finally(() => (generatePreambleLoading.value = false)) }).finally(() => (generatePreambleLoading.value = false))
if (res.code === 0) { if (res.code === 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment