diff --git a/src/pipecat/utils/tracing/service_decorators.py b/src/pipecat/utils/tracing/service_decorators.py index 8f98026e6..d87955755 100644 --- a/src/pipecat/utils/tracing/service_decorators.py +++ b/src/pipecat/utils/tracing/service_decorators.py @@ -491,6 +491,7 @@ def traced_llm(func: Optional[Callable] = None, *, name: Optional[str] = None) - # Handle system message for different services # settings.system_instruction takes priority (matches service behavior) + system_message = None if hasattr(self, "_settings") and getattr( self._settings, "system_instruction", None ):