Commit 0cbf8053 by Seefs

feat: logs show reject reason

parent 68e1e635
......@@ -578,9 +578,6 @@ export const getLogsColumns = ({
other?.is_system_prompt_overwritten,
'openai',
);
if (isAdminUser && other?.reject_reason) {
content += `\nBlock reason: ${other.reject_reason}`;
}
return (
<Typography.Paragraph
ellipsis={{
......
......@@ -397,6 +397,12 @@ export const useLogsData = () => {
value: logs[i].content,
});
}
if (isAdminUser && other?.reject_reason) {
expandDataLocal.push({
key: t('拦截原因'),
value: other.reject_reason,
});
}
}
if (logs[i].type === 2) {
let modelMapped =
......
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 sign in to comment