AnswerDotAI / AnswerDotAI/claudette

Incorrect pricing for 3.5 Haiku

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
316
Forks
43
PR merge metrics
No merged PRs in 30d

Description

Hello,

I think the pricing dictionary for haiku-3-5 is not up to date with the anthropic official pricing.

Here is the current pricing dictionary in the source code:
``` python
#| export
pricing = { # model type: $ / million tokens (input, output, cache write, cache read)
'opus': (15, 75, 18.75, 1.5),
'sonnet': (3, 15, 3.75, 0.3),
'haiku-3': (0.25, 1.25, 0.3, 0.03),
'haiku-3-5': (1, 3, 1.25, 0.1),
}
```

But here's the pricing from the anthropic official [pricing](https://www.anthropic.com/pricing#anthropic-api):
![Image](https://github.com/user-attachments/assets/49b99601-739f-49c9-9ece-4ed73cc15cd9)

I can fix this really quick if this needs to be fixed, unless I'm wrong about this.

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the pricing dictionary shown in the issue's source code and verify the current Anthropic API pricing for haiku-3-5. Update that model's pricing values if the report is correct, then confirm the dictionary reflects the official input, output, cache-write, and cache-read rates.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.