We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
GoogleModel
1 parent d896b01 commit f132f4eCopy full SHA for f132f4e
pydantic_ai_slim/pydantic_ai/models/google.py
@@ -279,7 +279,6 @@ async def _generate_content(
279
def _process_response(self, response: GenerateContentResponse) -> ModelResponse:
280
if not response.candidates or len(response.candidates) != 1:
281
raise UnexpectedModelBehavior('Expected exactly one candidate in Gemini response') # pragma: no cover
282
- print(response.candidates[0].safety_ratings)
283
if response.candidates[0].content is None or response.candidates[0].content.parts is None:
284
if response.candidates[0].finish_reason == 'SAFETY':
285
raise UnexpectedModelBehavior('Safety settings triggered', str(response))
0 commit comments