mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
refactor(bedrock_mantle): drop explanatory comments from route fallback
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
32a8c9bf87
commit
28b39d5a2e
2 changed files with 0 additions and 4 deletions
|
|
@ -31,7 +31,6 @@ BEDROCK_MANTLE_DEFAULT_REGION: Final = "us-east-1"
|
|||
# Standard Mantle host: https://bedrock-mantle.<region>.api.aws (group 1 = region).
|
||||
MANTLE_HOST_RE: Final = re.compile(r"^https?://bedrock-mantle\.([^/.]+)\.api\.aws(?=/|$)", re.IGNORECASE)
|
||||
|
||||
# OpenAI models on Mantle served from the /openai/v1 base; gpt-oss stays on /v1.
|
||||
OPENAI_V1_FAMILY_RE: Final = re.compile(r"^openai\.gpt-(?!oss)")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1216,13 +1216,10 @@ class TestMantleBaseSegment:
|
|||
),
|
||||
("openai.gpt-oss-120b", {}, "v1"),
|
||||
(None, {}, "v1"),
|
||||
# unmapped openai.gpt-* (not gpt-oss) -> family fallback to /openai/v1
|
||||
("openai.gpt-daybreak-blue-5.6-sol", {}, "openai/v1"),
|
||||
("openai.gpt-5.7", {}, "openai/v1"),
|
||||
("openai.gpt-oss-safeguard-20b", {}, "v1"),
|
||||
("somelab.unmapped", {}, "v1"),
|
||||
# the Router registers a bare {} entry for unmapped deployments; the
|
||||
# family fallback must still apply, while an explicit False wins
|
||||
("openai.gpt-5.7", {"bedrock_mantle/openai.gpt-5.7": {}}, "openai/v1"),
|
||||
(
|
||||
"openai.gpt-5.7",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue