mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
rename _is_model_gemini_spec_model
This commit is contained in:
parent
107abb6cd4
commit
654536b561
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ def get_supports_system_message(
|
||||||
)
|
)
|
||||||
|
|
||||||
# Vertex Models called in the `/gemini` request/response format also support system messages
|
# Vertex Models called in the `/gemini` request/response format also support system messages
|
||||||
if litellm.VertexGeminiConfig._is_model_gemini_gemini_spec_model(model):
|
if litellm.VertexGeminiConfig._is_model_gemini_spec_model(model):
|
||||||
supports_system_message = True
|
supports_system_message = True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
verbose_logger.warning(
|
verbose_logger.warning(
|
||||||
|
|
|
@ -420,7 +420,7 @@ class VertexGeminiConfig(VertexAIBaseConfig, BaseConfig):
|
||||||
]
|
]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _is_model_gemini_gemini_spec_model(model: Optional[str]) -> bool:
|
def _is_model_gemini_spec_model(model: Optional[str]) -> bool:
|
||||||
"""
|
"""
|
||||||
Returns true if user is trying to call custom model in `/gemini` request/response format
|
Returns true if user is trying to call custom model in `/gemini` request/response format
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue