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.
1 parent a1982ca commit 1dad48dCopy full SHA for 1dad48d
src/langtrace_python_sdk/instrumentation/gemini/patch.py
@@ -110,7 +110,7 @@ def get_llm_model(instance):
110
111
def serialize_prompts(args, kwargs, instance):
112
prompts = []
113
- if hasattr(instance, "_system_instruction"):
+ if hasattr(instance, "_system_instruction") and instance._system_instruction is not None:
114
system_prompt = {
115
"role": "system",
116
"content": instance._system_instruction.__dict__["_pb"].parts[0].text,
0 commit comments