Skip to content

feat(edge-pricing): evaluate a canonical Deno-compatible pricing source for edge patches #61

Description

@pitimon

Problem

Five Deno edge patches embed the same pricing table. The current synchronization test catches drift only after multiple manual edits. The code already records the desired shared-source direction, but deployment/bundling compatibility has not been proven.

Phase 1: feasibility/design spike

  • Determine whether the edge deployment supports a shared Deno-compatible module/import or a build-time generated artifact.
  • Verify the deployment/versioning contract and inspect deployed or bundled artifacts, not only local compilation.
  • Record the smallest compatible approach and rollback path.

Implementation acceptance criteria (only after feasibility passes)

  • All five functions consume one canonical Deno-compatible pricing artifact, or a generated artifact with equivalent single-source ownership.
  • No Node-only dependency, runtime network fetch, credential, or source-precedence change is introduced.
  • Alias handling, zero pricing, and cost calculations remain unchanged.
  • Tests prove each endpoint uses the same artifact and retain model-level pricing regressions.
  • Deployment/package validation covers every affected edge function.

Out of scope

  • Replacing the core src/LiteLLM pricing engine.
  • Adding automatic external pricing synchronization.
  • Bundling this work with the 2026-08-31 Sonnet 5 cutoff remediation.

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