mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
chore: tidying up some case insensitivity
This commit is contained in:
parent
e04af74986
commit
af74e80b05
2 changed files with 3 additions and 3 deletions
|
|
@ -367,12 +367,12 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):
|
|||
"""
|
||||
Map OpenAI service_tier (string) to Gemini serviceTier.
|
||||
'auto' maps to 'priority'.
|
||||
Other values are passed blindly.
|
||||
Other values are passed lowercased.
|
||||
"""
|
||||
if value == "auto":
|
||||
optional_params["service_tier"] = "priority"
|
||||
else:
|
||||
optional_params["service_tier"] = value
|
||||
optional_params["service_tier"] = value.lower()
|
||||
|
||||
def _transform_computer_use_config(self, computer_use_config: dict) -> dict:
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -3688,7 +3688,7 @@ def test_vertex_ai_service_tier_in_map_openai_params():
|
|||
drop_params=True,
|
||||
)
|
||||
|
||||
assert result["service_tier"] == "FLEX"
|
||||
assert result["service_tier"] == "flex"
|
||||
|
||||
# Test auto -> priority
|
||||
optional_params_auto = {}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue