You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i have the same prolbem.
Official reply:
Hi all, we did recently tighten up the validation logic here, apologies for the issues. We now check for unknown fields in each tool definition and disallow them. This was a bug in our original validation logic that we intended to fix. @CheongFan it looks like you might be passing “function: null” …
I have no problem running this code until today
Now it return validation error.
error, status code: 400, message: 4 validation errors for Request\nbody -> tools -> 0 -> type\n unexpected value; permitted: <ToolTypeParam.CODE_INTERPRETER: 'code_interpreter'> (type=value_error.const; given=retrieval; permitted=(<ToolTypeParam.CODE_INTERPRETER: 'code_interpreter'>,))\nbody -> tools -> 0 -> function\n extra fields not permitted (type=value_error.extra)\nbody -> tools -> 0 -> function\n extra fields not permitted (type=value_error.extra)\nbody -> tools -> 0 -> type\n unexpected value; permitted: <ToolTypeParam.FUNCTION: 'function'> (type=value_error.const; given=retrieval; permitted=(<ToolTypeParam.FUNCTION: 'function'>,))
Based on this thread, they made changes to the validation which disallow any unknown fields. Is there any way to solve this?
Thanks
Env:
The text was updated successfully, but these errors were encountered: