mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
fix: show provider name and dash protocol in model-sync logs
Provider field shows connection name (e.g. "BltCy API"), Protocol (sourceFormat) shows "-" since model-sync is not a chat/completion request. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,8 @@ export async function POST(request: Request, { params }: { params: Promise<{ id:
|
||||
path: `/api/providers/${id}/models`,
|
||||
status: modelsRes.status,
|
||||
model: "model-sync",
|
||||
provider: "-",
|
||||
provider: providerLabel,
|
||||
sourceFormat: "-",
|
||||
connectionId: id,
|
||||
duration,
|
||||
error: modelsData.error || `HTTP ${modelsRes.status}`,
|
||||
@@ -87,7 +88,8 @@ export async function POST(request: Request, { params }: { params: Promise<{ id:
|
||||
path: `/api/providers/${id}/models`,
|
||||
status: 200,
|
||||
model: "model-sync",
|
||||
provider: "-",
|
||||
provider: providerLabel,
|
||||
sourceFormat: "-",
|
||||
connectionId: id,
|
||||
duration: Date.now() - start,
|
||||
requestType: "model-sync",
|
||||
@@ -111,6 +113,7 @@ export async function POST(request: Request, { params }: { params: Promise<{ id:
|
||||
status: 500,
|
||||
model: "model-sync",
|
||||
provider: "unknown",
|
||||
sourceFormat: "-",
|
||||
connectionId: id,
|
||||
duration: Date.now() - start,
|
||||
error: error.message || "Sync failed",
|
||||
|
||||
Reference in New Issue
Block a user