interface AiRequestLog {
    aiProviderId: number;
    createdAt: string;
    durationMs: null | number;
    error: null | string;
    httpStatus: null | number;
    id: number;
    inputTokens: null | number;
    ip: null | string;
    isAutoTriggered: boolean;
    model: string;
    oauthClientId: null | string;
    oauthClientName: null | string;
    outputTokens: null | number;
    projectId: null | number;
    promptAction: null | string;
    promptId: null | number;
    requestId: string;
    sourceAction: string;
    status:
        | "error"
        | "pending"
        | "success"
        | "timeout";
    systemCredentials: boolean;
    tokenName: null | string;
    totalCost: null | number;
    userAgent: null | string;
    userId: null | number;
}

Properties

aiProviderId: number
createdAt: string
durationMs: null | number
error: null | string
httpStatus: null | number
id: number
inputTokens: null | number
ip: null | string
isAutoTriggered: boolean
model: string
oauthClientId: null | string
oauthClientName: null | string
outputTokens: null | number
projectId: null | number
promptAction: null | string
promptId: null | number
requestId: string
sourceAction: string
status:
    | "error"
    | "pending"
    | "success"
    | "timeout"
systemCredentials: boolean
tokenName: null | string
totalCost: null | number
userAgent: null | string
userId: null | number