add-model-price

द्वारा langfuse

जब worker/src/constants/default-model-prices.json, packages/shared/src/server/llm/types.ts, मूल्य निर्धारण स्तर, टोकनाइज़र आईडी, या matchPattern regexes को संपादित कर रहे हों तब उपयोग करें…

npx skills add https://github.com/langfuse/langfuse --skill add-model-price

Add Model Price

Use this skill for model pricing changes in worker/ and shared LLM type updates in packages/shared/.

When to Apply

  • Editing worker/src/constants/default-model-prices.json
  • Editing packages/shared/src/server/llm/types.ts
  • Adding a new priced model
  • Updating provider prices, cache pricing, or tier conditions
  • Expanding regex coverage for Bedrock, Vertex, Azure, or provider-prefixed model names
  • Auditing default model prices for stale, missing, or unmatched provider pricing
  • Auditing official provider docs for newly released major models that should receive default pricing and, when appropriate, selectable-model coverage

How to Read This Skill

  • Use this SKILL.md as the high-level workflow and helper index.
  • Open only the specific reference file that matches the task.

Quick Start Checklist

Adding a New Model

  • Gather official pricing from the provider documentation.
  • Generate a lowercase UUID for the model entry.
  • Create a matchPattern that covers supported provider formats.
  • Add at least one default pricing tier.
  • Write every per-token price as <USD per MTok>e-6 (0.1e-6, not 1e-7).
  • Map every supported semantic usage bucket to the provider aliases Langfuse may persist.
  • Insert the pricing entry into worker/src/constants/default-model-prices.json.
  • Update packages/shared/src/server/llm/types.ts if the model should be selectable in playground or evaluation flows.
  • Validate the JSON after editing.

Updating an Existing Model

  • Update the relevant prices, keys, tiers, or regexes.
  • Refresh updatedAt to today's ISO-8601 timestamp.
  • Validate the JSON after editing.

Reference Map

TopicRead this whenFile
Schema and tier rulesYou need the entry shape or pricing-tier invariantsreferences/schema-and-tiers.md
Provider sources and price keysYou need official pricing URLs, per-token conversion, or provider-specific usage keysreferences/provider-sources-and-price-keys.md
Provider usage-key matrixYou are adding or changing OpenAI, Gemini, Anthropic, or Bedrock usage keysreferences/provider-usage-key-matrix.md
Match patternsYou are editing matchPattern regexes or provider coveragereferences/match-patterns.md
Workflow and validationYou are applying the end-to-end edit process or checking common mistakesreferences/workflow-and-validation.md
Automated audit modeYou are running a scheduled/default-price audit and need CI-safe edit rulesreferences/automated-audit.md
Audit memoryYou need optional per-model context retained from a useful prior automated auditreferences/model-audit-memory.md

Deterministic Helpers

  • Pricing file validator: node .agents/skills/add-model-price/scripts/validate-pricing-file.mjs
  • Match-pattern tester: node .agents/skills/add-model-price/scripts/test-match-pattern.mjs --model <modelName> --accept <sample...> --reject <sample...>
  • Direct regex tester: node .agents/skills/add-model-price/scripts/test-match-pattern.mjs --pattern '(?i)^(openai/)?(gpt-4o)$' --accept gpt-4o openai/gpt-4o --reject gpt-4o-mini

langfuse की और Skills

frontend-browser-review
langfuse
इस कौशल का उपयोग तब करें जब कोई बदलाव ब्राउज़र में उपयोगकर्ताओं द्वारा देखे या किए जाने वाले कार्यों को प्रभावित करता है।
frontend-large-feature-architecture
langfuse
बड़े Langfuse फ्रंटएंड फीचर्स, वर्चुअलाइज्ड लिस्ट, बड़े टेबल, कंट्रोलर कंपोनेंट्स, लोकल फीचर… बनाने, बदलने या रीफैक्टर करने में उपयोग करें।
skill-developer
langfuse
एन्थ्रोपिक की सर्वोत्तम प्रथाओं का पालन करते हुए क्लॉड कोड कौशल बनाएं और प्रबंधित करें। नए कौशल बनाते समय, skill-rules.json संशोधित करते समय, ट्रिगर समझते समय उपयोग करें…
langfuse-prompt-migration
langfuse
हार्डकोडेड प्रॉम्प्ट को संस्करण नियंत्रण और डिप्लॉयमेंट-मुक्त पुनरावृत्ति के लिए Langfuse में माइग्रेट करें। उपयोग तब करें जब उपयोगकर्ता प्रॉम्प्ट को बाहरी बनाना चाहता है, प्रॉम्प्ट को Langfuse में स्थानांतरित करना चाहता है,…
incident-alert-tickets
langfuse
Read and, after human approval, update the Linear `incident-alert` knowledge base. Use before and after investigating a named Datadog monitor,…
refactor-react-effects
langfuse
Langfuse फ्रंटेंड कोड में अनावश्यक React useEffect उपयोग को रिफैक्टर करें। इफेक्ट्स जोड़ते, समीक्षा करते या हटाते समय उपयोग करें; फॉर्म या स्थानीय UI स्थिति को प्रारंभ करते समय…
sentry-instrumentation
langfuse
Decide whether and how errors report to Sentry. Use when touching capture or error-handling paths in `web/**`, triaging Sentry noise, or changing Sentry…
posthog-instrumentation
langfuse
Product analytics with posthog. Use when adding a meaningful user action or feature in `web/**`, touching PostHog capture code, or answering product-usage…