From 0319a4fce286fd012b93a6685226db6685726ea4 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Wed, 7 Jan 2026 16:11:31 +0530 Subject: [PATCH] fix:_encrypt_response_id --- litellm/proxy/hooks/responses_id_security.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}"