Skip to content

fix cerebras llama-3.1-70b model_prices_and_context_window, not llama3.1-70b #10648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025

Conversation

xsg22
Copy link
Contributor

@xsg22 xsg22 commented May 8, 2025

Title

Relevant issues

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test

Changes

Copy link

vercel bot commented May 8, 2025

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 May 8, 2025 2:56am

@CLAassistant
Copy link

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.
You have signed the CLA already but the status is still pending? Let us recheck it.

@xsg22
Copy link
Contributor Author

xsg22 commented May 8, 2025

This is the model name cited in the official document: https://inference-docs.cerebras.ai/api-reference/models
image
and, this is the name of the model in the return response of the interface:

{
    "id": "chatcmpl-79d79bbf-20e2-4f61-87e4-b97bcf2c8fdf",
    "choices": [
        {
            "finish_reason": "stop",
            "index": 0,
            "message": {
                "content": "[{\"content\": \"Yes, please switch off narrative power to.\"}]",
                "role": "assistant"
            }
        }
    ],
    "created": 1746672738,
    "model": "llama-3.3-70b",
    "system_fingerprint": "fp_c1b1963fdfa747d6bac1",
    "object": "chat.completion",
    "usage": {
        "prompt_tokens": 521,
        "completion_tokens": 16,
        "total_tokens": 537
    },
    "time_info": {
        "queue_time": 0.001188902,
        "prompt_time": 0.011535164,
        "completion_time": 0.012524334,
        "total_time": 0.02724003791809082,
        "created": 1746672738
    }
}

@krrishdholakia krrishdholakia merged commit 2361bd9 into BerriAI:main May 8, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants