Repository navigation
test(bedrock): drop EOL cohere.command-r-plus-v1:0 from local_testing - #39608
Merged
mateo-berri merged 1 commit intoSep 3, 2026
Merged
Conversation
Bedrock retired cohere.command-r-plus-v1:0 on 2026-08-19 and lists no Cohere command chat model anymore, so the three local_testing cases that pinned it fail with a 404 end-of-life error on every pipeline. Drop the case from test_completion_bedrock_httpx_models and move the parallel-streaming Bedrock entry to mistral.mistral-7b-instruct-v0:2, which still takes the invoke route and is ACTIVE in the CI account.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Greptile SummaryThis PR removes an end-of-life Bedrock Cohere model from live completion tests and replaces its parallel-streaming case with an active Mistral model
Confidence Score: 5/5The PR appears safe to merge No blocking failure remains
|
| Filename | Overview |
|---|---|
| tests/local_testing/test_completion.py | Removes an unavailable Cohere model from the live Bedrock completion matrix |
| tests/local_testing/test_streaming.py | Removes the obsolete Cohere entry and substitutes an active Bedrock Mistral model for parallel streaming coverage |
Reviews (2): Last reviewed commit: "test(bedrock): drop EOL cohere.command-r..." | Re-trigger Greptile
Contributor
Author
Contributor
Author
|
bugbot run |
Contributor
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit f87b909. Configure here.
This was referenced Sep 3, 2026
Merged
6 tasks done
This was referenced Sep 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TLDR
Problem this solves:
cohere.command-r-plus-v1:0on 2026-08-19 (end of life)local_testingcases still pin it, so CircleCI is red on plain stagingHow it solves it:
test_completion_bedrock_httpx_modelsmistral.mistral-7b-instruct-v0:2(invoke route, ACTIVE)test_bedrock_httpx_streamingUser Flow
Before: a maintainer pushes a green-looking change and CircleCI turns red on three Bedrock Cohere cases that no longer exist upstream
litellm_*branch with therun-cilabel and open the CircleCI workflowlocal_testing_part1runstest_completion_bedrock_httpx_models[True-bedrock/cohere.command-r-plus-v1:0]and[False-...], which send POST https://bedrock-runtime.us-west-2.amazonaws.com/model/cohere.command-r-plus-v1:0/invoke{"message":"This model version has reached the end of its life. Please refer to the AWS documentation for more details."}, so both cases fail withlitellm.NotFoundError: BedrockException - ...local_testing_part2runstest_parallel_streaming_requests[cohere.command-r-plus-v1:0-False], hits the same endpoint, and fails the same wayAfter: the same push runs both jobs green because the suites only call Bedrock models Bedrock still serves
litellm_*branch with therun-cilabel and open the CircleCI workflowlocal_testing_part1runstest_completion_bedrock_httpx_modelsover Mistral Large, Claude Sonnet 4.5, Mistral 7B, and Llama 3 8B, each answering HTTP 200 with a chat completionlocal_testing_part2runstest_parallel_streaming_requests[bedrock/mistral.mistral-7b-instruct-v0:2-...], which sends POST https://bedrock-runtime.us-west-2.amazonaws.com/model/mistral.mistral-7b-instruct-v0:2/invoke-with-response-stream and streams tokens back inside the test's 10s budgetRelevant issues
Linear ticket
Resolves LIT-6876
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
Auth for every call below is the CI Bedrock account's bearer token (
AWS_BEARER_TOKEN_BEDROCKin.env), region us-west-2, real Bedrock callsBefore (4b1e24e)
CircleCI on plain staging (pipeline 2026-09-03 17:36Z)
local_testing_part1job 2153032:tests/local_testing/test_completion.py::test_completion_bedrock_httpx_models[False-bedrock/cohere.command-r-plus-v1:0]and[True-bedrock/cohere.command-r-plus-v1:0]FAILEDlocal_testing_part2job 2153031:tests/local_testing/test_streaming.py::test_parallel_streaming_requests[cohere.command-r-plus-v1:0-False]FAILEDlitellm.NotFoundError: BedrockException - {"message":"This model version has reached the end of its life. Please refer to the AWS documentation for more details."}What Bedrock itself says about the pinned model
{"message":"This model version has reached the end of its life. Please refer to the AWS documentation for more details."}thenHTTP 404aws bedrock list-foundation-models --by-provider cohere --region us-west-2(same in us-east-1) lists onlycohere.embed-v4:0,cohere.embed-english-v3,cohere.embed-multilingual-v3, andcohere.rerank-v3-5:0: no Cohere command chat model is left to swap toAfter (f87b909)
The replacement model on the same endpoint shape
[INST] Hey! how'"'"'s it going? [/INST]","max_tokens":20}'{"outputs":[{"text":" Hello! I'm just a computer program, so I don't have feelings or the ability","stop_reason":"length"}]}thenHTTP 200aws bedrock list-foundation-models --region us-west-2showsmistral.mistral-7b-instruct-v0:2 ACTIVE ON_DEMAND(as aremistral.mistral-large-2407-v1:0,meta.llama3-8b-instruct-v1:0, and the Claude 4.5 inference profiles the other cases use)The two changed tests against real Bedrock
AWS_CONFIG_FILE=/dev/null AWS_SHARED_CREDENTIALS_FILE=/dev/null .venv/bin/python -m pytest "tests/local_testing/test_completion.py::test_completion_bedrock_httpx_models" "tests/local_testing/test_streaming.py::test_parallel_streaming_requests" -p no:cacheprovider -q --timeout=30014 passed, 17 warnings in 23.77s(8 completion cases across the four remaining Bedrock models, 6 parallel-streaming cases includingbedrock/mistral.mistral-7b-instruct-v0:2sync and async)CircleCI at this tip
test_completion_bedrock_httpx_models[...]cases passtest_parallel_streaming_requests[bedrock/mistral.mistral-7b-instruct-v0:2-*]cases passType
✅ Test
Caveats (if any)
Low
test_transform_request_cohere_commandintests/llm_translation/test_unit_test_bedrock_invoke.pystill covers its request transform offlinedeprecation_date: 2026-08-19, left as isNote
Low Risk
Test-only changes to model IDs in local_testing; no production or library behavior is modified.
Overview
Updates local Bedrock integration tests so CI no longer calls
cohere.command-r-plus-v1:0, which Bedrock retired (404 end-of-life).In
test_completion_bedrock_httpx_models, the Cohere model is dropped from the parametrized model list; the suite still exercises Mistral Large, Claude Sonnet 4.5, Mistral 7B, and Llama 3 8B over the httpx invoke path.In
test_streaming.py, the commented Cohere case is removed fromtest_bedrock_httpx_streaming, andtest_parallel_streaming_requestsnow usesbedrock/mistral.mistral-7b-instruct-v0:2instead of the bare Cohere id so parallel streaming still hits a live Bedrock model.Reviewed by Cursor Bugbot for commit f87b909. Bugbot is set up for automated code reviews on this repo. Configure here.