feat(frontend): 更新ops API接口和国际化文案
This commit is contained in:
@@ -25,8 +25,9 @@ export interface OpsRetryAttempt {
|
|||||||
created_at: string
|
created_at: string
|
||||||
requested_by_user_id: number
|
requested_by_user_id: number
|
||||||
source_error_id: number
|
source_error_id: number
|
||||||
mode: OpsRetryMode | string
|
mode: string
|
||||||
pinned_account_id?: number | null
|
pinned_account_id?: number | null
|
||||||
|
pinned_account_name?: string
|
||||||
|
|
||||||
status: string
|
status: string
|
||||||
started_at?: string | null
|
started_at?: string | null
|
||||||
@@ -37,15 +38,27 @@ export interface OpsRetryAttempt {
|
|||||||
http_status_code?: number | null
|
http_status_code?: number | null
|
||||||
upstream_request_id?: string | null
|
upstream_request_id?: string | null
|
||||||
used_account_id?: number | null
|
used_account_id?: number | null
|
||||||
|
used_account_name?: string
|
||||||
response_preview?: string | null
|
response_preview?: string | null
|
||||||
response_truncated?: boolean | null
|
response_truncated?: boolean | null
|
||||||
|
|
||||||
result_request_id?: string | null
|
result_request_id?: string | null
|
||||||
result_error_id?: number | null
|
result_error_id?: number | null
|
||||||
|
|
||||||
error_message?: string | null
|
error_message?: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type OpsUpstreamErrorEvent = {
|
||||||
|
at_unix_ms?: number
|
||||||
|
platform?: string
|
||||||
|
account_id?: number
|
||||||
|
account_name?: string
|
||||||
|
upstream_status_code?: number
|
||||||
|
upstream_request_id?: string
|
||||||
|
kind?: string
|
||||||
|
message?: string
|
||||||
|
detail?: string
|
||||||
|
}
|
||||||
|
|
||||||
export interface OpsRetryResult {
|
export interface OpsRetryResult {
|
||||||
attempt_id: number
|
attempt_id: number
|
||||||
mode: OpsRetryMode
|
mode: OpsRetryMode
|
||||||
@@ -759,6 +772,8 @@ export interface OpsAdvancedSettings {
|
|||||||
data_retention: OpsDataRetentionSettings
|
data_retention: OpsDataRetentionSettings
|
||||||
aggregation: OpsAggregationSettings
|
aggregation: OpsAggregationSettings
|
||||||
ignore_count_tokens_errors: boolean
|
ignore_count_tokens_errors: boolean
|
||||||
|
ignore_context_canceled: boolean
|
||||||
|
ignore_no_available_accounts: boolean
|
||||||
auto_refresh_enabled: boolean
|
auto_refresh_enabled: boolean
|
||||||
auto_refresh_interval_seconds: number
|
auto_refresh_interval_seconds: number
|
||||||
}
|
}
|
||||||
@@ -789,7 +804,6 @@ export interface OpsErrorLog {
|
|||||||
status_code: number
|
status_code: number
|
||||||
platform: string
|
platform: string
|
||||||
model: string
|
model: string
|
||||||
latency_ms?: number | null
|
|
||||||
|
|
||||||
is_retryable: boolean
|
is_retryable: boolean
|
||||||
retry_count: number
|
retry_count: number
|
||||||
@@ -806,7 +820,9 @@ export interface OpsErrorLog {
|
|||||||
user_id?: number | null
|
user_id?: number | null
|
||||||
api_key_id?: number | null
|
api_key_id?: number | null
|
||||||
account_id?: number | null
|
account_id?: number | null
|
||||||
|
account_name: string
|
||||||
group_id?: number | null
|
group_id?: number | null
|
||||||
|
group_name: string
|
||||||
|
|
||||||
client_ip?: string | null
|
client_ip?: string | null
|
||||||
request_path?: string
|
request_path?: string
|
||||||
|
|||||||
@@ -2009,8 +2009,13 @@ export default {
|
|||||||
// Error Log
|
// Error Log
|
||||||
errorLog: {
|
errorLog: {
|
||||||
timeId: 'Time / ID',
|
timeId: 'Time / ID',
|
||||||
|
time: 'Time',
|
||||||
type: 'Type',
|
type: 'Type',
|
||||||
context: 'Context',
|
context: 'Context',
|
||||||
|
platform: 'Platform',
|
||||||
|
model: 'Model',
|
||||||
|
group: 'Group',
|
||||||
|
account: 'Account',
|
||||||
status: 'Status',
|
status: 'Status',
|
||||||
message: 'Message',
|
message: 'Message',
|
||||||
latency: 'Request Duration',
|
latency: 'Request Duration',
|
||||||
@@ -2019,7 +2024,13 @@ export default {
|
|||||||
grp: 'GRP:',
|
grp: 'GRP:',
|
||||||
acc: 'ACC:',
|
acc: 'ACC:',
|
||||||
details: 'Details',
|
details: 'Details',
|
||||||
phase: 'Phase'
|
phase: 'Phase',
|
||||||
|
id: 'ID:',
|
||||||
|
typeUpstream: 'Upstream',
|
||||||
|
typeRequest: 'Request',
|
||||||
|
typeAuth: 'Auth',
|
||||||
|
typeRouting: 'Routing',
|
||||||
|
typeInternal: 'Internal'
|
||||||
},
|
},
|
||||||
// Error Details Modal
|
// Error Details Modal
|
||||||
errorDetails: {
|
errorDetails: {
|
||||||
|
|||||||
@@ -2153,17 +2153,28 @@ export default {
|
|||||||
// Error Log
|
// Error Log
|
||||||
errorLog: {
|
errorLog: {
|
||||||
timeId: '时间 / ID',
|
timeId: '时间 / ID',
|
||||||
|
time: '时间',
|
||||||
type: '类型',
|
type: '类型',
|
||||||
context: '上下文',
|
context: '上下文',
|
||||||
|
platform: '平台',
|
||||||
|
model: '模型',
|
||||||
|
group: '分组',
|
||||||
|
account: '账号',
|
||||||
status: '状态码',
|
status: '状态码',
|
||||||
message: '消息',
|
message: '响应内容',
|
||||||
latency: '请求时长',
|
latency: '请求时长',
|
||||||
action: '操作',
|
action: '操作',
|
||||||
noErrors: '该窗口内暂无错误。',
|
noErrors: '该窗口内暂无错误。',
|
||||||
grp: 'GRP:',
|
grp: 'GRP:',
|
||||||
acc: 'ACC:',
|
acc: 'ACC:',
|
||||||
details: '详情',
|
details: '详情',
|
||||||
phase: '阶段'
|
phase: '阶段',
|
||||||
|
id: 'ID:',
|
||||||
|
typeUpstream: '上游',
|
||||||
|
typeRequest: '请求',
|
||||||
|
typeAuth: '认证',
|
||||||
|
typeRouting: '路由',
|
||||||
|
typeInternal: '内部'
|
||||||
},
|
},
|
||||||
// Error Details Modal
|
// Error Details Modal
|
||||||
errorDetails: {
|
errorDetails: {
|
||||||
|
|||||||
Reference in New Issue
Block a user