Commit b734b417 authored by 周成波's avatar 周成波

bug

parent 7c2aebdc
...@@ -20,8 +20,8 @@ export default { ...@@ -20,8 +20,8 @@ export default {
} }
}) })
.catch((err: any) => { .catch((err: any) => {
console.log(err); console.log(`err = ${JSON.stringify(err)}`);
return Promise.reject(`与LLM通讯失败:${JSON.stringify(err.message.message)}`); return Promise.reject(`与LLM通讯失败:${JSON.stringify(err.message)}`);
}); });
}, },
...@@ -63,8 +63,8 @@ export default { ...@@ -63,8 +63,8 @@ export default {
} }
}) })
.catch((err: any) => { .catch((err: any) => {
console.log(err); console.log(`err = ${JSON.stringify(err)}`);
return Promise.reject(`与 stable-diffusion-webui Api 通讯失败:${JSON.stringify(err.message.message)}`); return Promise.reject(`与 stable-diffusion-webui Api 通讯失败:${JSON.stringify(err.message)}`);
}); });
}, },
...@@ -84,8 +84,8 @@ export default { ...@@ -84,8 +84,8 @@ export default {
} }
}) })
.catch((err: any) => { .catch((err: any) => {
console.log(err); console.log(`err = ${JSON.stringify(err)}`);
return Promise.reject(`gen_video接口通讯失败:${JSON.stringify(err.message.message)}`); return Promise.reject(`gen_video接口通讯失败:${JSON.stringify(err.message)}`);
}); });
}, },
...@@ -105,8 +105,8 @@ export default { ...@@ -105,8 +105,8 @@ export default {
} }
}) })
.catch((err: any) => { .catch((err: any) => {
console.log(err); console.log(`err = ${JSON.stringify(err)}`);
return Promise.reject(`与pwd_check接口通讯失败:${JSON.stringify(err.message.message)}`); return Promise.reject(`与pwd_check接口通讯失败:${JSON.stringify(err.message)}`);
}); });
}, },
...@@ -126,8 +126,8 @@ export default { ...@@ -126,8 +126,8 @@ export default {
} }
}) })
.catch((err: any) => { .catch((err: any) => {
console.log(err); console.log(`err = ${JSON.stringify(err)}`);
return Promise.reject(`与翻译接口通讯失败:${JSON.stringify(err.message.message)}`); return Promise.reject(`与翻译接口通讯失败:${JSON.stringify(err.message)}`);
}); });
}, },
} }
...@@ -87,6 +87,7 @@ const onAdaptRoles = async () => { ...@@ -87,6 +87,7 @@ const onAdaptRoles = async () => {
return; return;
} }
// 推理角色 // 推理角色
try {
form.chatgpt_answer_roles = []; form.chatgpt_answer_roles = [];
const adapt_restrict = `请理解这个故事:“${form.chatgpt_answer}”,给出这个故事中的所有角色,多个角色以逗号分隔。\n要求:只返回角色名称即可,不要添加其他的内容。`; const adapt_restrict = `请理解这个故事:“${form.chatgpt_answer}”,给出这个故事中的所有角色,多个角色以逗号分隔。\n要求:只返回角色名称即可,不要添加其他的内容。`;
let roles = await text2videoService.submitLLM(adapt_restrict, role_llm.api); let roles = await text2videoService.submitLLM(adapt_restrict, role_llm.api);
...@@ -109,6 +110,12 @@ const onAdaptRoles = async () => { ...@@ -109,6 +110,12 @@ const onAdaptRoles = async () => {
}); });
} }
console.log(form.chatgpt_answer_roles) console.log(form.chatgpt_answer_roles)
} catch (error) {
ElMessage({
message: String(error),
type: "error",
});
}
}; };
...@@ -681,7 +688,6 @@ const onPwdCheckDialog = () => { ...@@ -681,7 +688,6 @@ const onPwdCheckDialog = () => {
type: "error", type: "error",
}); });
}); });
} }
const onDeleteOne = (item: any) => { const onDeleteOne = (item: any) => {
......
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