Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0cbf8053
authored
Jan 25, 2026
by
Seefs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: logs show reject reason
parent
68e1e635
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
web/src/components/table/usage-logs/UsageLogsColumnDefs.jsx
+0
-3
web/src/hooks/usage-logs/useUsageLogsData.jsx
+6
-0
No files found.
web/src/components/table/usage-logs/UsageLogsColumnDefs.jsx
View file @
0cbf8053
...
@@ -578,9 +578,6 @@ export const getLogsColumns = ({
...
@@ -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=
{
{
...
...
web/src/hooks/usage-logs/useUsageLogsData.jsx
View file @
0cbf8053
...
@@ -397,6 +397,12 @@ export const useLogsData = () => {
...
@@ -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
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment