Added get responses API (#10234)

This commit is contained in:
Prathamesh Saraf 2025-04-23 19:37:00 +05:30 committed by GitHub
parent f5996b2f6b
commit c832b0fded
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 442 additions and 1 deletions

View file

@ -141,9 +141,34 @@ class BaseResponsesAPIConfig(ABC):
pass
#########################################################
########## END DELETE RESPONSE API TRANSFORMATION ##########
########## END DELETE RESPONSE API TRANSFORMATION #######
#########################################################
#########################################################
########## GET RESPONSE API TRANSFORMATION ###############
#########################################################
@abstractmethod
def transform_get_response_api_request(
self,
response_id: str,
api_base: str,
litellm_params: GenericLiteLLMParams,
headers: dict,
) -> Tuple[str, Dict]:
pass
@abstractmethod
def transform_get_response_api_response(
self,
raw_response: httpx.Response,
logging_obj: LiteLLMLoggingObj,
) -> ResponsesAPIResponse:
pass
#########################################################
########## END GET RESPONSE API TRANSFORMATION ##########
#########################################################
def get_error_class(
self, error_message: str, status_code: int, headers: Union[dict, httpx.Headers]
) -> BaseLLMException: