diff --git a/litellm/proxy/hooks/responses_id_security.py b/litellm/proxy/hooks/responses_id_security.py index d196a68d369..d3b8725eb85 100644 --- a/litellm/proxy/hooks/responses_id_security.py +++ b/litellm/proxy/hooks/responses_id_security.py @@ -218,7 +218,8 @@ class ResponsesIDSecurity(CustomLogger): ) encoded_user_id_and_response_id = encrypt_value_helper( - value=encrypted_response_id + value=encrypted_response_id, + new_encryption_key=signing_key ) setattr( response, "id", f"resp_{encoded_user_id_and_response_id}" @@ -231,7 +232,8 @@ class ResponsesIDSecurity(CustomLogger): user_api_key_dict.team_id or "", ) encoded_user_id_and_response_id = encrypt_value_helper( - value=encrypted_response_id + value=encrypted_response_id, + new_encryption_key=signing_key ) setattr( response_obj, "id", f"resp_{encoded_user_id_and_response_id}"