feat: logs show reject reason

This commit is contained in:
Seefs
2026-01-25 15:00:30 +08:00
parent 00c5d9ffdf
commit dda40ef62a
2 changed files with 6 additions and 3 deletions

View File

@@ -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={{

View File

@@ -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 =