feat(pricing): refresh bundled prices and consider an explicit user update API
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start with chatlas/_tokens.py and the Makefile update-pricing target, then inspect .github/workflows/check-update-types.yml and ellmer commit 57e3d72d. The bundled-data portion is done when chatlas/data/prices.json matches the current ellmer source; any refresh API should have offline tests and must not make normal imports or chats access the network.
Written by the indexing model from the issue text.
Description
Why this matters
Chatlas packages a snapshot of ellmer pricing data for cost estimates. The current snapshot is older than ellmer's source: chatlas has 1,286 entries dated 2026-08-10, while ellmer has 1,306 entries dated 2026-08-17. This omits pricing for newer models and tiers, including Claude Mythos, Gemini 3.7, GPT-5.6 Bedrock large-context tiers, and newer Groq/Mistral models.
Ellmer added an explicit models_update_prices() cache-refresh API in tidyverse/ellmer#968 (57e3d72d) after deciding against automatic background refreshes.
Scope
- Refresh the bundled
chatlas/data/prices.jsonfrom ellmer as a maintenance update. - Evaluate whether chatlas should expose a user-invoked pricing refresh API backed by a local cache, rather than requiring a package release for new model pricing.
- If adding the API, define its network behavior, cache location, schema/version validation, failure behavior, and whether cached data replaces or merges with bundled data. Keep it explicit: no automatic network request during normal imports or chats.
- Add tests that do not require live network access.
Starting points
chatlas/_tokens.py: loads the packaged pricing snapshot at import time and performs lookups.Makefiletargetupdate-pricing: downloads the source artifact from ellmer..github/workflows/check-update-types.yml: keeps generated pricing current in CI.- Ellmer reference:
git -C ../ellmer show 57e3d72d.
Non-goals
- Do not change cost calculation semantics or make pricing lookup network-dependent.
- Do not silently alter prices during import, tests, or a normal chat request.
Open design question
The bundled-data refresh is independently actionable. The runtime API is optional and should be split into a follow-up if its design adds more than a small, well-tested cache layer.
- Dominant language
- Python
- Stars
- 179
- Forks
- 32
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 10
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from posit-dev/chatlas
-
A streaming text delta that repeats everything streamed so far is missing from the recorded turnPossibly taken @cpsievert claimed this 81 days ago. Openai-triage:done Priority: Medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
ai-triage:needs-review documentation
Difficulty 2/5 1-2 days Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
ai-triage:done Priority: Low
Difficulty 3/5 1-2 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
All issues in posit-dev/chatlas
Similar issues
-
jira: an unquoted JQL number of more than 4300 digits is a plain-text 500, where real answers 200Openfidelity
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
A JSON chat answer blocks the backend event loop for the whole RAG runPossibly taken @NopeCharon claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
The-OpenROAD-Project/ORAssistant#656 ·
Maintainers usually reply within 1 day
-
bug(operator): VolterraOperator built inside jax.jit with a concrete decay raises TracerBoolConversionErrorPossibly taken @jejjohnson claimed this today. Opentype:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
jejjohnson/integrix#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
finos/ai-governance-framework#459 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
autowarefoundation/autoware_carla_scenario#2963 ·
Maintainers usually reply within 1 day