Skip to content

test: point the live together_ai suites at a model together still serves - #37746

Merged
yuneng-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_/litellm-pr-37721-ci-2b2879
Aug 21, 2026
Merged

yuneng-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_/litellm-pr-37721-ci-2b2879

Conversation

@yuneng-berri

@yuneng-berri yuneng-berri commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Every live together_ai call in CI 503s since 2026-08-20
  • Together reports no incident in either failure window
  • Qwen2.5-7B-Instruct-Turbo is absent from their monitored components
  • It also carries null pricing in the cost map

How it solves it:

  • Repoint the live suites at openai/gpt-oss-20b
  • Cheapest priced together_ai entry with the needed capabilities
  • Together monitors it as a served component

User Flow

This PR touches test files only, so no end user flow changes. What changes is which together_ai model the live conformance suites call

Relevant issues

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. 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
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to 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

These are live provider calls and there is no together_ai key on my machine, so I cannot run the before and after against Together from here. The failing evidence is in CI, and CI is where the after has to be captured. What I could verify offline is recorded below

Before (02e67cd)

live together_ai calls

  1. ci/circleci: llm_translation_testing -> 17 TestTogetherAI failures, ci/circleci: local_testing_part1 -> 3, ci/circleci: local_testing_part2 -> 1
  2. All identical: litellm.ServiceUnavailableError: Together_aiException - Service unavailable
  3. Two runs 2.5h apart, same result: https://app.circleci.com/workflow/6ec42f1c-28b9-415e-b210-721c56c4c368 and https://app.circleci.com/workflow/e36bb1a2-ff9a-4587-ba96-7817672f1780
  4. Every TestTogetherAI test that makes a live call is in that failure set

cost map, run locally

  1. litellm.get_model_info("together_ai/Qwen/Qwen2.5-7B-Instruct-Turbo")
  2. in=0 out=0, and the raw catalog entry is input_cost_per_token: null, output_cost_per_token: null

After (bf92025)

cost map, run locally

  1. litellm.get_model_info("together_ai/openai/gpt-oss-20b")
  2. in=5e-08 out=2e-07 fc=True schema=True toolchoice=True mode=chat, so pricing and every capability these suites exercise resolve

live together_ai calls

Run triggered by the run-ci label on this commit: https://app.circleci.com/workflow/a1ec69c5-d91d-4db3-bf4d-c981c9512894

  1. llm_translation_testing -> TestTogetherAI returns 23 passes and 0 failures, so every live call in the class got through
  2. local_testing_part1 -> test_completion_custom_provider_model_name, test_customprompt_together_ai and test_completion_together_ai_stream all pass
  3. local_testing_part2 -> test_async_text_completion_together_ai passes
  4. No Service unavailable anywhere in the run, so the 503s were the model and not the account
  5. test_json_response_nested_json_schema and test_json_response_nested_pydantic_obj also pass now, so gpt-oss-20b clears the grammar compiler limit that was failing them on 08-19

llm_translation_testing is still red, on test_azure_openai_responses_bridge, which is unrelated to together_ai and already fails the same way on the base. Same run on litellm_internal_staging at cc812cdf: https://app.circleci.com/workflow/e36bb1a2-ff9a-4587-ba96-7817672f1780. It is the azure sibling of the assertion #37744 corrected in test_openai.py, and it needs its own one-line change

Type

✅ Test

Caveats (if any)

  • test_multiple_deployments.py keeps the old id, it is green and cassette-backed
  • The one remaining red in llm_translation_testing is pre-existing on the base and out of scope here

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Every live together_ai call in CI has answered 503 Service unavailable since
2026-08-20, across two runs 2.5 hours apart, while Together's status page
reported no incident in either window. These are real calls, not replayed
cassettes: the VCR layer runs filter_non_2xx_response, so a 503 is never
written to a cassette and cannot be replayed back.

Qwen/Qwen2.5-7B-Instruct-Turbo does not appear anywhere on Together's monitored
component list, whose Qwen entries are all Qwen3.x, so a model-level outage
there would never surface as an incident. The same 503 already forced
test_basic_rerank_together_ai to be skipped on a different together_ai model,
so per-model 503s are an established failure mode here rather than a platform
outage.

openai/gpt-oss-20b is the cheapest together_ai entry that carries real pricing
and the capabilities these suites exercise, at $0.05/$0.20 per 1M tokens with
function calling, response schema and tool choice. Together monitors it as a
served component. The retired model also carries null pricing in the cost map,
which is its own liability now that unpriced models are blocked.

test_multiple_deployments.py keeps the old id: it is a router fallback list
that is green today, and busting its cassette to prove a point would trade a
passing test for a live call this change cannot vouch for.
@greptile-apps

greptile-apps Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR replaces the unavailable Together AI Qwen model with openai/gpt-oss-20b in three live test suites.

  • Updates the inherited Together chat conformance suite model.
  • Updates synchronous and streaming Together completion calls.
  • Updates the asynchronous Together text-completion call.

Confidence Score: 5/5

The PR appears safe to merge, with no concrete changed-code defect established in the test-only model replacements.

The replacement preserves the relevant declared chat capabilities, adds valid pricing metadata, and no available evidence shows that the updated live calls violate a repository or provider contract.

Important Files Changed

Filename Overview
tests/llm_translation/test_together_ai.py Repoints the inherited Together chat conformance suite to a priced model with equivalent relevant capability metadata.
tests/local_testing/test_completion.py Repoints three live Together chat-completion scenarios, including custom-prompt and streaming coverage.
tests/local_testing/test_text_completion.py Repoints the asynchronous legacy text-completion test; repository routing is valid, though live provider acceptance remains pending CI as acknowledged.

Reviews (1): Last reviewed commit: "test: point the live together_ai suites ..." | Re-trigger Greptile

@codecov

codecov Bot commented Aug 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@yuneng-berri
yuneng-berri merged commit 35416c7 into litellm_internal_staging Aug 21, 2026
68 checks passed
@yuneng-berri
yuneng-berri deleted the litellm_/litellm-pr-37721-ci-2b2879 branch August 21, 2026 01:53
@tin-berri

Copy link
Copy Markdown
Contributor

Nice diagnosis in the PR body — the before/after evidence (21 failures across 3 jobs from Together's Qwen model 503ing, down to pricing/capability resolving correctly for gpt-oss-20b locally) is solid.

One thing holding me back from approving as-is: ci/circleci: llm_translation_testing is still failing on this commit (the exact job/file this PR touches), and I don't have access to the CircleCI log content to tell whether that's a leftover unrelated flake or gpt-oss-20b hitting the same kind of issue on one of the 4 call sites. Given you've already flagged that CI is the actual verification step here (no local Together key), could you check that specific job's output and confirm? Happy to approve as soon as it's clear the remaining failure isn't caused by this change.

@tin-berri tin-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving per Tin — the before/after evidence in the PR body (21 live-call failures across 3 jobs from Together's Qwen model 503ing, resolved by repointing at gpt-oss-20b with pricing/capabilities confirmed locally) is solid. Note: llm_translation_testing was still showing failing as of my last check and I wasn't able to confirm the cause via CircleCI logs — worth a follow-up look if it's still red.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants