Skip to content

feat(pricing): sync sources, LLM caller, validators (Task #12)#28

Open
lubobill1990 wants to merge 1 commit into
feat/11-usage-routefrom
feat/12-pricing-sync-core
Open

feat(pricing): sync sources, LLM caller, validators (Task #12)#28
lubobill1990 wants to merge 1 commit into
feat/11-usage-routefrom
feat/12-pricing-sync-core

Conversation

@lubobill1990
Copy link
Copy Markdown
Collaborator

Refs #12

🤖 Generated with Claude Code

- src/lib/pricing-sources.ts: fetchAzureRetailPrices() pages through Azure Retail Prices API; fetchAnthropicPricingHtml() best-effort GET.
- src/lib/pricing-sync.ts: pickSyncModel, buildSyncRequest, callSyncLlm (x-internal-pricing-sync + json_object), priceChanged (0.5%), sanityFails (10x).

Tests: priceChanged, sanityFails, pickSyncModel.

Refs #12

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant