-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Add backward compatibility for guided_... API
#25615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Harry Mellor <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds backward compatibility for deprecated guided_* API parameters by re-introducing them and forwarding their values to the new structured_outputs parameter. The changes are mostly correct, but I found a critical issue that would cause a TypeError at runtime due to an incorrect parameter being passed to StructuredOutputsParams. Additionally, there's an inconsistency where structural_tag is not handled for CompletionRequest, which I've also pointed out.
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
|
Let's also wait 3.9 EOL before merging this PR. |
|
How is that related? |
|
|
No, that has been supported since Python 3.9 (PEP 585) |
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Harry Mellor <[email protected]> Signed-off-by: Cyrus Leung <[email protected]> Co-authored-by: Cyrus Leung <[email protected]>
Signed-off-by: Harry Mellor <[email protected]> Signed-off-by: Cyrus Leung <[email protected]> Co-authored-by: Cyrus Leung <[email protected]> Signed-off-by: yewentao256 <[email protected]>
Signed-off-by: Harry Mellor <[email protected]> Signed-off-by: Cyrus Leung <[email protected]> Co-authored-by: Cyrus Leung <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
Signed-off-by: Harry Mellor <[email protected]> Signed-off-by: Cyrus Leung <[email protected]> Co-authored-by: Cyrus Leung <[email protected]>
Signed-off-by: Harry Mellor <[email protected]> Signed-off-by: Cyrus Leung <[email protected]> Co-authored-by: Cyrus Leung <[email protected]>
Signed-off-by: Harry Mellor <[email protected]> Signed-off-by: Cyrus Leung <[email protected]> Co-authored-by: Cyrus Leung <[email protected]> Signed-off-by: xuebwang-amd <[email protected]>
Reinstates backward compatiblility for the following APIs removed by #22772:
CompletionRequestandChatCompletionRequeststructured_outputs