mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-13 03:59:12 +00:00
* feat: add Bespoke Nimble gateway and OSS classifier support * feat: accept Ollama's nimble model name for the Bespoke provider * test: exempt the POST-only bespoke decisions route from the all-methods check test_pass_through_routes_support_all_methods requires every built-in pass-through route to accept every HTTP method unless it is listed in PROTOCOL_CONSTRAINED_PASS_THROUGH_ROUTES. /bespoke/v1/systemone is POST-only like /laya/v1/systemone, so the test failed at this branch and passed at the merge base. List it alongside Laya. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
20 lines
646 B
Python
20 lines
646 B
Python
from collections.abc import Mapping
|
|
|
|
import pytest
|
|
|
|
from litellm.llms.laya.common_utils import laya_response_model
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
("routing", "requested", "expected"),
|
|
[
|
|
({"model": "multilingual"}, "english", "multilingual"),
|
|
(None, "english", "english"),
|
|
({"model": 42}, "english", "english"),
|
|
(None, None, "unknown"),
|
|
],
|
|
)
|
|
def test_laya_identity_tracks_the_checkpoint_not_the_shared_agent_name(
|
|
routing: Mapping[str, object] | None, requested: str | None, expected: str
|
|
) -> None:
|
|
assert laya_response_model({"model": "laya-rl-agent", "routing": routing}, requested) == expected
|