feat(dashboard): add model/status/account/api-key filters to usage details tab
- Add apiKey column to requestDetails (schema v2 + migration 002) - Persist masked API key via buildRequestDetail across chatCore handlers - Add getRequestDetails apiKey filter + distinct models/apiKeys/statuses helpers - New /api/usage/filters endpoint returning grouped connections per provider - Group account dropdown by provider using <optgroup>; add Status column with success/error badge to the details table Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
This commit is contained in:
@@ -286,7 +286,7 @@ export async function handleNonStreamingResponse({ providerResponse, provider, m
|
||||
|
||||
const totalLatency = Date.now() - requestStartTime;
|
||||
saveRequestDetail(buildRequestDetail({
|
||||
provider, model, connectionId,
|
||||
provider, model, connectionId, apiKey,
|
||||
latency: { ttft: totalLatency, total: totalLatency },
|
||||
tokens: usage || { prompt_tokens: 0, completion_tokens: 0 },
|
||||
request: extractRequestConfig(body, stream),
|
||||
|
||||
Reference in New Issue
Block a user