mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-03 08:40:36 +00:00
merge: sync batch image foundation with upstream main
This commit is contained in:
commit
9703ca9d33
119 files changed
+7719
-1389
No files matched your search
@@ -930,11 +930,16 @@ export interface OpsErrorLog {
|
||||
requested_model?: string
|
||||
upstream_model?: string
|
||||
request_type?: number | null
|
||||
user_agent?: string
|
||||
|
||||
// 已删除 KEY 所有者(INVALID_API_KEY 归因快照):认证失败行 user_id 为空,
|
||||
// 用户列以此回退显示所有者
|
||||
deleted_key_owner_user_id?: number | null
|
||||
deleted_key_owner_email?: string | null
|
||||
}
|
||||
|
||||
export interface OpsErrorDetail extends OpsErrorLog {
|
||||
error_body: string
|
||||
user_agent: string
|
||||
|
||||
// Upstream context (optional; enriched by gateway services)
|
||||
upstream_status_code?: number | null
|
||||
@@ -950,10 +955,9 @@ export interface OpsErrorDetail extends OpsErrorLog {
|
||||
|
||||
is_business_limited: boolean
|
||||
|
||||
// Deleted key owner info (INVALID_API_KEY attribution)
|
||||
// Deleted key owner info (INVALID_API_KEY attribution);
|
||||
// owner user_id/email 已上移到 OpsErrorLog(列表用户列回退)
|
||||
attempted_key_prefix?: string | null
|
||||
deleted_key_owner_user_id?: number | null
|
||||
deleted_key_owner_email?: string | null
|
||||
deleted_key_name?: string | null
|
||||
|
||||
// Bound (non-deleted) key prefix, snapshotted at error time
|
||||
@@ -1098,6 +1102,8 @@ export type OpsErrorListQueryParams = {
|
||||
model?: string
|
||||
|
||||
phase?: string
|
||||
// 分类(用户侧粗分类码,如 auth/rate_limit/upstream),后端反查为 phase/type ANY 条件
|
||||
category?: string
|
||||
error_owner?: string
|
||||
error_source?: string
|
||||
resolved?: string
|
||||
@@ -1106,6 +1112,10 @@ export type OpsErrorListQueryParams = {
|
||||
q?: string
|
||||
status_codes?: string
|
||||
status_codes_other?: string
|
||||
|
||||
// 服务端排序,列白名单见后端 opsErrorLogsOrderBy(created_at/model/status_code)
|
||||
sort_by?: string
|
||||
sort_order?: 'asc' | 'desc'
|
||||
}
|
||||
|
||||
// Legacy unified endpoints
|
||||
|
||||
@@ -606,6 +606,28 @@ export interface SystemSettings {
|
||||
payment_visible_method_alipay_enabled?: boolean;
|
||||
payment_visible_method_wxpay_enabled?: boolean;
|
||||
openai_advanced_scheduler_enabled?: boolean;
|
||||
openai_advanced_scheduler_sticky_weighted_enabled?: boolean;
|
||||
openai_advanced_scheduler_subscription_priority_enabled?: boolean;
|
||||
openai_advanced_scheduler_lb_top_k?: string;
|
||||
openai_advanced_scheduler_weight_priority?: string;
|
||||
openai_advanced_scheduler_weight_load?: string;
|
||||
openai_advanced_scheduler_weight_queue?: string;
|
||||
openai_advanced_scheduler_weight_error_rate?: string;
|
||||
openai_advanced_scheduler_weight_ttft?: string;
|
||||
openai_advanced_scheduler_weight_reset?: string;
|
||||
openai_advanced_scheduler_weight_quota_headroom?: string;
|
||||
openai_advanced_scheduler_weight_previous_response?: string;
|
||||
openai_advanced_scheduler_weight_session_sticky?: string;
|
||||
openai_advanced_scheduler_effective_lb_top_k?: string;
|
||||
openai_advanced_scheduler_effective_weight_priority?: string;
|
||||
openai_advanced_scheduler_effective_weight_load?: string;
|
||||
openai_advanced_scheduler_effective_weight_queue?: string;
|
||||
openai_advanced_scheduler_effective_weight_error_rate?: string;
|
||||
openai_advanced_scheduler_effective_weight_ttft?: string;
|
||||
openai_advanced_scheduler_effective_weight_reset?: string;
|
||||
openai_advanced_scheduler_effective_weight_quota_headroom?: string;
|
||||
openai_advanced_scheduler_effective_weight_previous_response?: string;
|
||||
openai_advanced_scheduler_effective_weight_session_sticky?: string;
|
||||
|
||||
// 余额、订阅到期与账号限额通知
|
||||
balance_low_notify_enabled: boolean;
|
||||
@@ -855,6 +877,18 @@ export interface UpdateSettingsRequest {
|
||||
payment_visible_method_alipay_enabled?: boolean;
|
||||
payment_visible_method_wxpay_enabled?: boolean;
|
||||
openai_advanced_scheduler_enabled?: boolean;
|
||||
openai_advanced_scheduler_sticky_weighted_enabled?: boolean;
|
||||
openai_advanced_scheduler_subscription_priority_enabled?: boolean;
|
||||
openai_advanced_scheduler_lb_top_k?: string;
|
||||
openai_advanced_scheduler_weight_priority?: string;
|
||||
openai_advanced_scheduler_weight_load?: string;
|
||||
openai_advanced_scheduler_weight_queue?: string;
|
||||
openai_advanced_scheduler_weight_error_rate?: string;
|
||||
openai_advanced_scheduler_weight_ttft?: string;
|
||||
openai_advanced_scheduler_weight_reset?: string;
|
||||
openai_advanced_scheduler_weight_quota_headroom?: string;
|
||||
openai_advanced_scheduler_weight_previous_response?: string;
|
||||
openai_advanced_scheduler_weight_session_sticky?: string;
|
||||
// 余额、订阅到期与账号限额通知
|
||||
balance_low_notify_enabled?: boolean;
|
||||
balance_low_notify_threshold?: number;
|
||||
|
||||
@@ -86,6 +86,10 @@ export interface AdminUsageQueryParams extends UsageQueryParams {
|
||||
billing_mode?: string
|
||||
sort_by?: string
|
||||
sort_order?: 'asc' | 'desc'
|
||||
// 错误请求 tab 专属筛选(仅传给错误列表接口;共用同一 filters 对象)
|
||||
error_phase?: string | null
|
||||
error_category?: string | null
|
||||
status_code?: number | null
|
||||
}
|
||||
|
||||
// ==================== API Functions ====================
|
||||
|
||||
Reference in new issue
Block a user