Skip to content

Fix: Ensure function params are not null #325

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

Merged
merged 1 commit into from
May 8, 2024

Conversation

cjellick
Copy link
Contributor

@cjellick cjellick commented May 7, 2024

Mistral's validation is more strict than OpenAIs and will reject a
function if the parameter field is set to null or completely omitted. It
is strictly expecting a valid map. This change makes that so.

Signed-off-by: Craig Jellick [email protected]

Mistral's validation is more strict than OpenAIs and will reject a
function if the parameter field is set to null or completely omitted. It
is strictly expecting a valid map. This change makes that so.

Signed-off-by: Craig Jellick <[email protected]>
@cjellick cjellick merged commit bf41c3b into gptscript-ai:main May 8, 2024
1 check passed
@cjellick cjellick deleted the param-fix branch June 7, 2024 15:35
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.

3 participants