This commit is contained in:
Stephen Chin 2026-09-12 23:47:05 -07:00 • committed by GitHub
commit 4e5d3d1f87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -100,6 +100,7 @@ class ChatGPTResponsesAPIConfig(OpenAIResponsesAPIConfig):
"tools",
"tool_choice",
"reasoning",
"prompt_cache_key",
"previous_response_id",
"truncation",
}

View file

@ -179,6 +179,7 @@ class TestChatGPTResponsesAPITransformation:
"max_output_tokens": 123,
"stream_options": {"include_usage": True},
# supported and should be preserved
"prompt_cache_key": "session_123",
"truncation": "auto",
"previous_response_id": "resp_123",
"reasoning": {"effort": "medium"},
@ -197,6 +198,7 @@ class TestChatGPTResponsesAPITransformation:
assert "max_output_tokens" not in request
assert "stream_options" not in request
assert request["prompt_cache_key"] == "session_123"
assert request["truncation"] == "auto"
assert request["previous_response_id"] == "resp_123"
assert request["reasoning"] == {"effort": "medium"}