Repository navigation
feat(azure.py): support 'json_schema' for older models - #5296
Merged
1 commit merged intoAug 20, 2024
Merged
1 commit merged into
1 commit merged into
Conversation
Converts the json schema input to a tool call, allows the call to still work on older azure models
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| assert response_str == response_str_2 | ||
| assert type(response_str) == str | ||
| assert len(response_str) > 1 | ||
| print(f"response_str: {response_str}") |
Check failure
Code scanning / CodeQL
Clear-text logging of sensitive information
Contributor
|
@krrishdholakia This seems to be used even when newer models like gpt-4o-mini are used with the new Azure OpenAI 2024-08-01-preview API. |
This pull request was closed.
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Title
support 'json_schema' for older models
Relevant issues
Converts the json schema input to a tool call, allows the call to still work on older azure models
Type
🆕 New Feature
Changes
Fixes #5295
[REQUIRED] Testing - Attach a screenshot of any new tests passing locall
If UI changes, send a screenshot/GIF of working UI fixes