anomalyco / anomalyco/models.dev

Support Multiple Currencies for Model Pricing

Open
#2,919 1 comment 2 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.