diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py index c2baf92daf..b1e52eb8f3 100644 --- a/litellm/responses/litellm_completion_transformation/transformation.py +++ b/litellm/responses/litellm_completion_transformation/transformation.py @@ -581,7 +581,7 @@ class LiteLLMCompletionResponsesConfig: type="output_text", text=message.content, annotations=LiteLLMCompletionResponsesConfig._transform_chat_completion_annotations_to_response_output_annotations( - annotations=message.annotations + annotations=getattr(message, "annotations", None) ), )