Add delete_openai_response route, define delete OpenAI message schema and make an integration test

This commit is contained in:
2000krysztof 2025-05-28 15:53:32 +01:00
parent 5639ad7466
commit b45c650063
9 changed files with 225 additions and 75 deletions

View file

@ -156,7 +156,7 @@ def _validate_api_delete_method_returns_none(method) -> str | None:
# Allow OpenAI endpoints to return response objects since they follow OpenAI specification
method_name = getattr(method, '__name__', '')
if method_name.startswith('openai_'):
if method_name.__contains__('openai_'):
return None
if return_type is not None and return_type is not type(None):