Skip to content
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

feat: adds strict mode support #1

Closed

Conversation

baywet
Copy link

@baywet baywet commented Dec 6, 2024

related microsoft#9786
this PR should NOT be merged, it's just intending to ease up comparisons until microsoft#9807 gets merged.
I'll open another PR to upstream once 9807 gets merged

pending questions:

  • any other functions types (beyond OpenAI) we should enable strict mode for?

@eiriktsarpalis eiriktsarpalis force-pushed the remove-json-schema-mapper branch from 88cbfc7 to df45a59 Compare December 6, 2024 16:32
@eiriktsarpalis eiriktsarpalis force-pushed the remove-json-schema-mapper branch from 823155c to 33ebf16 Compare December 9, 2024 17:50
eiriktsarpalis and others added 23 commits December 9, 2024 15:21
Signed-off-by: Vincent Biret <[email protected]>
Signed-off-by: Vincent Biret <[email protected]>
var jsonObject = parsedJson.AsObject();
foreach (var forbiddenPropertyName in forbiddenPropertyNames)
{
jsonObject.Remove(forbiddenPropertyName);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is where I'm doing the forbidden keywords cleanup, might want to be recursive in case we have those on the request body.
more context microsoft#9807 (comment)

@baywet baywet closed this Dec 10, 2024
@baywet
Copy link
Author

baywet commented Dec 10, 2024

re-opened here microsoft#9924

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants