Skip to content

Commit

Permalink
another_another_one
Browse files Browse the repository at this point in the history
  • Loading branch information
holchan committed Jan 9, 2025
1 parent 0641e52 commit 5ab023d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cognee/infrastructure/llm/gemini/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,4 @@ async def acreate_structured_output(
except JSONSchemaValidationError as e:
logger.error(f"Schema validation failed: {str(e)}")
logger.debug(f"Raw response: {e.raw_response}")
raise ValueError(f"Response failed schema validation: {str(e)}")
except Exception as e:
logger.error(f"Error in structured output generation: {str(e)}")
raise ValueError(f"Failed to generate structured output: {str(e)}")
raise ValueError(f"Response failed schema validation: {str(e)}")

0 comments on commit 5ab023d

Please sign in to comment.