Repository navigation
feat: add integration test for max_output_tokens - #4825
Conversation
|
@mattf I was trying to add a integration test with openai client now, can you help check if this is the right direction? Thanks |
| input=request.input, | ||
| model=request.model, | ||
| prompt=request.prompt, | ||
| instructions=request.instructions, | ||
| previous_response_id=request.previous_response_id, | ||
| conversation=request.conversation, | ||
| store=request.store, | ||
| stream=request.stream, | ||
| temperature=request.temperature, | ||
| text=request.text, | ||
| tool_choice=request.tool_choice, | ||
| tools=request.tools, | ||
| include=request.include, | ||
| max_infer_iters=request.max_infer_iters, | ||
| guardrails=request.guardrails, | ||
| parallel_tool_calls=request.parallel_tool_calls, | ||
| max_tool_calls=request.max_tool_calls, | ||
| max_output_tokens=request.max_output_tokens, | ||
| reasoning=request.reasoning, | ||
| metadata=request.metadata, |
There was a problem hiding this comment.
This can make sure when you are adding a new parameter here, do not need to consider the order of the parameters.
There was a problem hiding this comment.
yeah this makes sense, I have been hitting this too
mattf
left a comment
There was a problem hiding this comment.
this is worth including just for the param naming!
imho, tests like this could be done w/ the openresponses cli.
@mattf can you elaborate more on this? I did not see openresponses cli from https://github.com/openresponses |
https://github.com/openresponses/openresponses?tab=readme-ov-file#cli |
|
@mattf +1 with you for the compliance integration test, I think after all response API finished, we can add a new integration file named as |
no need to wait. the test can be informative and non-gating. |
What does this PR do?
Related to #4817
Test Plan