feat: track upstream request ID and prevent response header override

When proxying through another new-api instance, the upstream
X-Oneapi-Request-Id was overwriting the local one in client responses.
This adds a new `upstream_request_id` field to the logs table, captures
the upstream ID during relay, and filters it from being copied back to
the client. Frontend gains search/filter and detail display support.
This commit is contained in:
CaIon
2026-05-12 21:53:54 +08:00
parent 428e3d91f2
commit aa56667b8f
20 changed files with 112 additions and 32 deletions
+4 -3
View File
@@ -1817,6 +1817,7 @@
"Generation quality preset": "生成品質プリセット",
"Generic cache": "汎用キャッシュ",
"Get notified when balance falls below this value": "残高がこの値を下回ったときに通知を受け取る",
"Get one here": "こちらから取得",
"Get started": "はじめる",
"Get Started": "開始する",
"GitHub": "GitHub",
@@ -2059,7 +2060,6 @@
"IP Filter Mode": "IP フィルターモード",
"IP Restriction": "IP制限",
"IP Whitelist (supports CIDR)": "IP ホワイトリスト(CIDR対応)",
"Power AI applications, manage digital assets, connect the Future": "AIアプリケーションを支え、デジタル資産を管理し、未来をつなぐ",
"is less than the configured maximum cache size": "設定された最大キャッシュサイズより小さい",
"is the default price; ": "はデフォルト価格です; ",
"It seems like the page you're looking for": "お探しのページは",
@@ -2946,6 +2946,7 @@
"PostgreSQL detected": "PostgreSQLが検出されました",
"PostgreSQL offers advanced reliability and data integrity for production workloads.": "PostgreSQL は本番ワークロード向けの高度な信頼性とデータ整合性を提供します。",
"PostgreSQL offers strong reliability guarantees. Double check your maintenance window and retention policies before going live.": "PostgreSQLは強力な信頼性保証を提供します。本番稼働する前に、メンテナンスウィンドウと保持ポリシーを再確認してください。",
"Power AI applications, manage digital assets, connect the Future": "AIアプリケーションを支え、デジタル資産を管理し、未来をつなぐ",
"Powerful API Management Platform": "強力なAPI管理プラットフォーム",
"Pre-Consume for Free Models": "無料モデルの事前消費",
"Pre-consumed": "事前消費",
@@ -3073,8 +3074,6 @@
"Pull": "プル",
"Pull model": "モデルをプル",
"Pulling...": "プル中...",
"Subscribe to a plan for model access": "モデルアクセスのためにプランを登録",
"Get one here": "こちらから取得",
"Purchase Limit": "購入上限",
"Purchase limit reached": "購入上限に達しました",
"Purchase Subscription": "サブスクリプションを購入",
@@ -3702,6 +3701,7 @@
"Submitting...": "送信中...",
"Submodel": "Submodel",
"Subscribe Now": "今すぐ購読",
"Subscribe to a plan for model access": "モデルアクセスのためにプランを登録",
"Subscription": "サブスクリプション",
"Subscription Billing": "サブスクリプション課金",
"Subscription First": "サブスクリプション優先",
@@ -4140,6 +4140,7 @@
"Upstream price sync": "アップストリーム価格同期",
"Upstream prices fetched successfully": "上流価格を正常に取得しました",
"Upstream ratios fetched successfully": "アップストリーム比率が正常に取得されました",
"Upstream Request ID": "上流リクエストID",
"Upstream Response": "アップストリームレスポンス",
"upstream services integrated": "アップストリームサービス連携",
"Upstream Updates": "アップストリーム更新",