mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-28 00:00:38 +00:00
* test(e2e): move the Claude Code matrix to Opus, Sonnet and Haiku 5.5 and add Fable 5.2 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(e2e): drop Fable 5.2 from the Bedrock cells of the Claude Code matrix The stage account behind the e2e Bedrock role has no Marketplace subscription for Fable 5.2, so every Bedrock Invoke and Converse call to it answers 403 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(e2e): move the GPT cells of the Claude Code matrix to GPT-6 and add Astra OpenAI and Bedrock Mantle move to gpt-6.2-sol, gpt-6.1-terra and gpt-6-luna and gain gpt-6.2-astra. Azure OpenAI moves to gpt-6.1-sol and gpt-6-luna, gains gpt-6-astra, and keeps gpt-5.6-terra because Azure has no GPT-6 Terra Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(e2e): shorten the Bedrock Fable omission notes to a TODO Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(e2e): drop the repeated Azure Terra notes and keep one TODO in the config Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
80 lines
3.6 KiB
Python
80 lines
3.6 KiB
Python
"""Shared plumbing for the GPT-6 (Sol / Terra / Luna / Astra) provider columns.
|
|
|
|
The columns track the newest generally available model in each OpenAI
|
|
tier: Sol (flagship, GPT-6.2), Terra (balanced, GPT-6.1), Luna (fast,
|
|
GPT-6) and Astra (GPT-6.2), a family OpenAI added with GPT-6. Claude
|
|
Code can drive all four through a LiteLLM proxy that translates the
|
|
Anthropic Messages API to each provider's native shape. Four provider
|
|
columns cover "OpenAI plus the big three clouds":
|
|
|
|
openai OpenAI API (openai/gpt-6*)
|
|
azure_openai Azure OpenAI (azure/gpt-6*; Azure trails
|
|
OpenAI, see test_config.yaml)
|
|
bedrock_mantle AWS Bedrock, Mantle (bedrock_mantle/openai.gpt-6*,
|
|
Responses API)
|
|
vertex_ai_gpt GCP Vertex AI not_applicable — Vertex does
|
|
not offer the closed-weight
|
|
GPT-6 family; Model Garden
|
|
carries only the open-weight
|
|
gpt-oss MaaS models
|
|
|
|
The azure_openai column runs unconditionally when the Azure GPT
|
|
deployments exist. The openai column is opt-in via
|
|
`COMPAT_OPENAI_GPT_CELLS=1` because under the full stage suite those
|
|
cells routinely burn minutes on Claude CLI timeouts. The bedrock_mantle
|
|
column is opt-in via `COMPAT_MANTLE_CELLS=1` because the AWS account is
|
|
still waiting on the Bedrock Mantle allowlist for the `openai.gpt-6*`
|
|
models; until the flag is set each Mantle cell skips and its matrix
|
|
cell publishes as `not_tested` instead of a credential-shaped red.
|
|
The `vertex_ai_gpt` column needs no flag either way: its cells report
|
|
a static `not_applicable` and never touch the network.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
import pytest
|
|
|
|
MANTLE_CELLS_ENV = "COMPAT_MANTLE_CELLS"
|
|
OPENAI_GPT_CELLS_ENV = "COMPAT_OPENAI_GPT_CELLS"
|
|
|
|
VERTEX_AI_GPT_NOT_APPLICABLE_REASON = (
|
|
"GCP Vertex AI does not offer OpenAI's closed-weight GPT-6 family "
|
|
"(Sol / Terra / Luna / Astra); Model Garden carries only the open-weight "
|
|
"gpt-oss MaaS models. Convert this column's cells to live tests if "
|
|
"Google adds the GPT-6 models."
|
|
)
|
|
|
|
|
|
def skip_unless_mantle_cells_enabled() -> None:
|
|
"""Skip the calling test unless `COMPAT_MANTLE_CELLS` opts the
|
|
Bedrock Mantle cells in.
|
|
|
|
A skipped cell is recorded as `not_tested` in the published matrix
|
|
(see the skip handling in `tests/e2e/claude_code/conftest.py`),
|
|
which is the honest state while the AWS account has no Mantle
|
|
access to the GPT-6 models yet.
|
|
"""
|
|
if os.environ.get(MANTLE_CELLS_ENV, "").strip().lower() in {"1", "true", "yes"}:
|
|
return
|
|
pytest.skip(
|
|
f"Bedrock Mantle GPT-6 cells are opt-in; set {MANTLE_CELLS_ENV}=1 "
|
|
"once the AWS account is allowlisted for the openai.gpt-6* models"
|
|
)
|
|
|
|
|
|
def skip_unless_openai_gpt_cells_enabled() -> None:
|
|
"""Skip OpenAI GPT-6 columns unless `COMPAT_OPENAI_GPT_CELLS` opts them in.
|
|
|
|
Under the full stage suite these cells routinely hit 120s Claude CLI
|
|
timeouts and rate-limit-shaped retries across Sol/Terra/Luna/Astra, burning
|
|
~8+ minutes per cell without a stable green. Opt in when exercising
|
|
the OpenAI GPT translation path in isolation.
|
|
"""
|
|
if os.environ.get(OPENAI_GPT_CELLS_ENV, "").strip().lower() in {"1", "true", "yes"}:
|
|
return
|
|
pytest.skip(
|
|
f"OpenAI GPT-6 cells are opt-in; set {OPENAI_GPT_CELLS_ENV}=1 "
|
|
"to run them (stage suite timeouts under concurrent load)"
|
|
)
|