This commit is contained in:
Swapna Lekkala 2025-11-14 11:21:59 -08:00
parent 189251b56f
commit 232f687443
2 changed files with 2 additions and 1 deletions

View file

@ -363,6 +363,7 @@ class OpenAIResponsesImpl:
# Structured outputs
response_format = await convert_response_text_to_chat_response_format(text)
ctx = ChatCompletionContext(
model=model,
messages=messages,

View file

@ -165,7 +165,7 @@ class TestTranslateException:
assert result.detail == "Internal server error: An unexpected error occurred."
def test_translate_runtime_error(self):
"""Test that RuntimeError without a sanitizer rule returns generic server error."""
"""Test that RuntimeError is translated to 500 HTTP status."""
exc = RuntimeError("Runtime error")
result = translate_exception(exc)