The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Add stubbed routes to pass initial auth tests
Ishaan Jaffd7847feba903
diff --git a/litellm/proxy/response_api_endpoints/endpoints.py b/litellm/proxy/response_api_endpoints/endpoints.pyindex 8649276b0ec..f9ddf306a76 100644--- a/litellm/proxy/response_api_endpoints/endpoints.py+++ b/litellm/proxy/response_api_endpoints/endpoints.py@@ -78,3 +78,93 @@ async def responses_api(proxy_logging_obj=proxy_logging_obj,version=version,)+++ "/v1/responses/{response_id}",+ dependencies=[Depends(user_api_key_auth)],+ tags=["responses"],+)+ "/responses/{response_id}",+ dependencies=[Depends(user_api_key_auth)],+ tags=["responses"],+)+async def get_response(+ response_id: str,+ request: Request,+ fastapi_response: Response,+ user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),+):+ """+ Get a response by ID.++ Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/get++ ```bash+ curl -X GET http://localhost:4000/v1/responses/resp_abc123 \+ -H "Authorization: Bearer sk-1234"+ ```+ """+ # TODO: Implement response retrieval logic+ pass+++ "/v1/responses/{response_id}",+ dependencies=[Depends(user_api_key_auth)],+ tags=["responses"],+)+ "/responses/{response_id}",+ dependencies=[Depends(user_api_key_auth)],+ tags=["responses"],+)+async def delete_response(+ response_id: str,+ request: Request,+ fastapi_response: Response,+ user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),+):+ """+ Delete a response by ID.++ Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/delete++ ```bash+ curl -X DELETE http://localhost:4000/v1/responses/resp_abc123 \+ -H "Authorization: Bearer sk-1234"+ ```+ """+ # TODO: Implement response deletion logic+ pass+++ "/v1/responses/{response_id}/input_items",+ dependencies=[Depends(user_api_key_auth)],+ tags=["responses"],+)+ "/responses/{response_id}/input_items",+ dependencies=[Depends(user_api_key_auth)],+ tags=["responses"],+)+async def get_response_input_items(+ response_id: str,+ request: Request,+ fastapi_response: Response,+ user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),+):+ """+ Get input items for a response.++ Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-items++ ```bash+ curl -X GET http://localhost:4000/v1/responses/resp_abc123/input_items \+ -H "Authorization: Bearer sk-1234"+ ```+ """+ # TODO: Implement input items retrieval logic+ pass