@grafctory/llms
    Preparing search index...

    Type Alias Labels

    Labels: { readonly [label: string]: string }

    Model request labels.

    Identify the source the Usage of a request is attributed to: each key names a label, such as job or team, and its value identifies the source along that label, such as events-loader or data.

    The labels of a request are logged with its usage (see charge). Where the provider accepts them, they are also attached to the request itself, so its cost is split by source in the provider billing reports as well.

    Note

    Each provider sets its own limits on keys, values and their number: model connectors bring labels within the limits of their provider before attaching them to a request, and log them as supplied.

    Type Declaration

    • readonly [label: string]: string
    const labels: Labels = { job: "events-loader", team: "data" };