anomalyco / anomalyco/models.dev
Support Multiple Currencies for Model Pricing
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 1.7k
- Avg merge
- 3h 21m
- Merged PRs (30d)
- 873
Description
Currently, all model pricing in the repository is hardcoded in USD. However, some providers do not bill in USD. For example, Scaleway bills in EUR, the prices are copied as-is in the model config (e.g. with GLM-5.2), so it appears as USD prices which is incorrect. Given the dynamic currency exchange rate, the correct way to fix this would be to be able to set the currency inside the [cost] section.
I'll try to implement the change myself.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Scaleway model configuration at providers/scaleway/models/glm-5.2.toml and inspect how its [cost] values are represented and consumed. Trace the existing pricing path to determine where currency is assumed to be USD; done means a provider can declare EUR in [cost] and the published pricing is no longer presented as USD.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- ai, data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100