Zum Inhalt springen
Kitbay
Skill

add-model-price

NOASSERTIONAktualisiert am 11. Nov. 202637.296GitHub-SterneEnthält Skripte

A maintainer skill in the Langfuse repository for changing the default model prices that Langfuse uses to estimate the cost of language model calls.

Was der Skill vermittelt

A maintainer skill in the Langfuse repository for changing the default model prices that Langfuse uses to estimate the cost of language model calls. It covers adding a model from the provider's official pricing page with a new ID, a regular expression that matches the model names used by OpenAI, Anthropic, Bedrock, Vertex, Azure or Gemini, and at least one pricing tier with prices written per token; updating prices, cache pricing or tiers and refreshing the timestamp; and removing retired models from selectable lists while keeping their prices for historical costs. Seven reference files explain the schema, provider usage keys and audits, and two bundled Node scripts validate the prices file and test a match pattern.

Funktionen

  • Add a model with pricing tiers
  • Write match patterns for provider model names
  • Retire a model from selectable lists
  • Validate the prices file with a script