diff --git a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_and_google_ai_studio_gemini.py b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_and_google_ai_studio_gemini.py index 0a7be19b9b..5392f253f8 100644 --- a/litellm/llms/vertex_ai_and_google_ai_studio/vertex_and_google_ai_studio_gemini.py +++ b/litellm/llms/vertex_ai_and_google_ai_studio/vertex_and_google_ai_studio_gemini.py @@ -309,7 +309,6 @@ class GoogleAIStudioGeminiConfig: # key diff from VertexAI - 'frequency_penalty "n", "stop", ] - def _map_function(self, value: List[dict]) -> List[Tools]: gtool_func_declarations = [] googleSearchRetrieval: Optional[dict] = None @@ -973,7 +972,6 @@ class VertexLLM(BaseLLM): index=candidate.get("index", idx), ) tools.append(_tool_response_chunk) - chat_completion_message["content"] = ( content_str if len(content_str) > 0 else None ) @@ -982,7 +980,6 @@ class VertexLLM(BaseLLM): if functions is not None: chat_completion_message["function_call"] = functions - choice = litellm.Choices( finish_reason=candidate.get("finishReason", "stop"), index=candidate.get("index", idx),