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 4375703 commit 7cb50a9Copy full SHA for 7cb50a9
guardrails/classes/history/iteration.py
@@ -98,7 +98,7 @@ def completion_tokens_consumed(self) -> Optional[int]:
98
def raw_output(self) -> Optional[str]:
99
"""The exact output from the LLM."""
100
response = self.outputs.llm_response_info
101
- if response is not None:
+ if response is not None and response.output:
102
return response.output
103
elif self.outputs.raw_output is not None:
104
return self.outputs.raw_output
0 commit comments