mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 00:27:26 +00:00
feat: logs show reject reason
This commit is contained in:
@@ -578,9 +578,6 @@ export const getLogsColumns = ({
|
|||||||
other?.is_system_prompt_overwritten,
|
other?.is_system_prompt_overwritten,
|
||||||
'openai',
|
'openai',
|
||||||
);
|
);
|
||||||
if (isAdminUser && other?.reject_reason) {
|
|
||||||
content += `\nBlock reason: ${other.reject_reason}`;
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<Typography.Paragraph
|
<Typography.Paragraph
|
||||||
ellipsis={{
|
ellipsis={{
|
||||||
|
|||||||
@@ -397,6 +397,12 @@ export const useLogsData = () => {
|
|||||||
value: logs[i].content,
|
value: logs[i].content,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if (isAdminUser && other?.reject_reason) {
|
||||||
|
expandDataLocal.push({
|
||||||
|
key: t('拦截原因'),
|
||||||
|
value: other.reject_reason,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (logs[i].type === 2) {
|
if (logs[i].type === 2) {
|
||||||
let modelMapped =
|
let modelMapped =
|
||||||
|
|||||||
Reference in New Issue
Block a user