Skip to content

Commit

Permalink
Removed redundant lines that added the "title" field to the schema. (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledelhady44 authored Dec 12, 2024
1 parent c46a26c commit 999eb78
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libs/genai/langchain_google_genai/_function_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,6 @@ def _get_items_from_schema(schema: Union[Dict, List, str]) -> Dict[str, Any]:
items["type_"] = _get_type_from_schema(schema)
if items["type_"] == glm.Type.OBJECT and "properties" in schema:
items["properties"] = _get_properties_from_schema_any(schema["properties"])
if "title" in schema:
items["title"] = schema
if "title" in schema or "description" in schema:
items["description"] = (
schema.get("description") or schema.get("title") or ""
Expand Down

0 comments on commit 999eb78

Please sign in to comment.