@@ -426,7 +432,7 @@ const LogsTable = () => {
title: t('令牌'),
dataIndex: 'token_name',
render: (text, record, index) => {
- return record.type === 0 || record.type === 2 ? (
+ return record.type === 0 || record.type === 2 || record.type === 5 ? (
{
title: t('分组'),
dataIndex: 'group',
render: (text, record, index) => {
- if (record.type === 0 || record.type === 2) {
+ if (record.type === 0 || record.type === 2 || record.type === 5) {
if (record.group) {
return <>{renderGroup(record.group)}>;
} else {
@@ -490,7 +496,7 @@ const LogsTable = () => {
title: t('模型'),
dataIndex: 'model_name',
render: (text, record, index) => {
- return record.type === 0 || record.type === 2 ? (
+ return record.type === 0 || record.type === 2 || record.type === 5 ? (
<>{renderModelName(record)}>
) : (
<>>
@@ -530,7 +536,7 @@ const LogsTable = () => {
title: t('提示'),
dataIndex: 'prompt_tokens',
render: (text, record, index) => {
- return record.type === 0 || record.type === 2 ? (
+ return record.type === 0 || record.type === 2 || record.type === 5 ? (
<>{ {text} }>
) : (
<>>
@@ -543,7 +549,7 @@ const LogsTable = () => {
dataIndex: 'completion_tokens',
render: (text, record, index) => {
return parseInt(text) > 0 &&
- (record.type === 0 || record.type === 2) ? (
+ (record.type === 0 || record.type === 2 || record.type === 5) ? (
<>{ {text} }>
) : (
<>>
@@ -555,7 +561,7 @@ const LogsTable = () => {
title: t('花费'),
dataIndex: 'quota',
render: (text, record, index) => {
- return record.type === 0 || record.type === 2 ? (
+ return record.type === 0 || record.type === 2 || record.type === 5 ? (
<>{renderQuota(text, 6)}>
) : (
<>>
@@ -986,9 +992,10 @@ const LogsTable = () => {
other?.group_ratio,
other?.cache_tokens || 0,
other?.cache_ratio || 1.0,
- other?.image || false,
- other?.image_ratio || 0,
- other?.image_output || 0,);
+ other?.image || false,
+ other?.image_ratio || 0,
+ other?.image_output || 0,
+ );
}
expandDataLocal.push({
key: t('计费过程'),
@@ -1247,6 +1254,7 @@ const LogsTable = () => {
{t('消费')}
{t('管理')}
{t('系统')}
+ {t('错误')}