Skip to content

[Telemetry] Accurate Token & Cost Attribution #26

@AlexChesser

Description

@AlexChesser

Ticket 2.1: [Telemetry] Accurate Token & Cost Attribution

Description: Implement logic to capture token usage from LLM providers and calculate costs based on the model spec.
Tasks:

  • Parse usage metadata from Claude and Ollama response payloads.
  • Implement provider YAML overrides for input_cost and output_cost (essential for free local models).
  • Pass this telemetry data into the ail storage layer.

Planning Prompt for Opus:

Design a YAML override for provider token costs in the spec and implement the logic to extract/fallback token usage metadata from response payloads."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions