updated tests to verify usage of previous_response_id and conversation

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
This commit is contained in:
Francisco Javier Arceo 2025-10-09 16:00:59 -04:00
parent 1e59793288
commit 9d039e884d
4 changed files with 30 additions and 0 deletions

View file

@ -230,6 +230,11 @@ class OpenAIResponsesImpl:
if shields is not None:
raise NotImplementedError("Shields parameter is not yet implemented in the meta-reference provider")
if conversation is not None and previous_response_id is not None:
raise ValueError(
"Mutually exclusive parameters: 'previous_response_id' and 'conversation'. Ensure you are only providing one of these parameters."
)
if conversation is not None:
if not conversation.startswith("conv_"):
raise InvalidConversationIdError(conversation)