We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9abe620 commit a330672Copy full SHA for a330672
sentry_sdk/integrations/google_genai/utils.py
@@ -741,9 +741,8 @@ def _transform_system_instruction_one_level(
741
text_parts.append({"type": "text", "content": part.text})
742
return text_parts
743
744
- if isinstance(system_instructions, dict):
745
- if system_instructions.get("text"):
746
- return [{"type": "text", "content": system_instructions["text"]}]
+ if isinstance(system_instructions, dict) and system_instructions.get("text"):
+ return [{"type": "text", "content": system_instructions["text"]}]
747
748
elif can_be_content and isinstance(system_instructions, dict):
749
parts = system_instructions.get("parts", [])
0 commit comments