litellm icon indicating copy to clipboard operation
litellm copied to clipboard

fix(model prices & context window) - add claude-3-5-haiku-latest & cl…

Open hsaeed3 opened this issue 1 year ago • 1 comments

…aude-3-5-sonnet-latest to base anthropic & openrouter/anthropic model definitions

Title

Add "claude-3-5-sonnet-latest" & "claude-3-5-haiku-latest" to model pricing & context window config

Relevant issues

Fixes

01:17:33 - LiteLLM:ERROR: token_counter.py:78 - litellm.litellm_core_utils.token_counter.py::get_modified_max_tokens() - Error while checking max token limit: This model isn't mapped yet. model=anthropic/claude-3-5-haiku-latest, custom_llm_provider=anthropic. Add it here - https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json.
model=anthropic/claude-3-5-haiku-latest, base_model=anthropic/claude-3-5-haiku-latest

Type

🐛 Bug Fix

Changes

Added definitions for "claude-3-5-sonnet-latest" & "claude-3-5-haiku-latest", to base anthropic & open router model defintions.

hsaeed3 avatar Nov 27 '24 09:11 hsaeed3

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
litellm ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 27, 2024 9:39am

vercel[bot] avatar Nov 27 '24 09:11 vercel[bot]

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Hammad Saeed seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 22 '25 22:04 CLAassistant

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Hammad Saeed seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 22 '25 22:04 CLAassistant

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Hammad Saeed seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 22 '25 22:04 CLAassistant

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Jul 22 '25 00:07 github-actions[bot]