mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
test(bedrock): cover None-provider passthrough in invoke param parsing
This commit is contained in:
parent
73ef4bef36
commit
52d9729a21
1 changed files with 13 additions and 0 deletions
|
|
@ -51,6 +51,19 @@ def test_command_r_and_legacy_resolve_to_different_bodies():
|
|||
assert legacy == {}
|
||||
|
||||
|
||||
def test_none_provider_passes_through_untouched():
|
||||
params = {"anything": 1}
|
||||
assert (
|
||||
parse_invoke_inference_params(
|
||||
provider=None,
|
||||
model="some-unresolved-model",
|
||||
params=params,
|
||||
drop_params=True,
|
||||
)
|
||||
== params
|
||||
)
|
||||
|
||||
|
||||
def test_unmodeled_provider_passes_through_untouched():
|
||||
params = {"anything": 1, "stream_chunk_size": 4}
|
||||
assert (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue