I tried to debug it by replacing retrievals with code_interpreter, and i get this error:
Error Response: {
“error”: {
“message”: “5 validation errors for Request\nbody → tools → 0 → function\n extra fields not permitted (type=value_error.extra)\nbody → tools → 0 → type\n unexpected value; permitted: <ToolTypeParam.RETRIEVAL: ‘retrieval’> (type=value_error.const; given=code_interpreter; permitted=(<ToolTypeParam.RETRIEVAL: ‘retrieval’>,))\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=code_interpreter; permitted=(<ToolTypeParam.FUNCTION: ‘function’>,))\nbody → tools → 0 → function\n none is not an allowed value (type=type_error.none.not_allowed)”,
“type”: “invalid_request_error”,
“param”: null,
“code”: null
}
}
I really don’t get it. The error now states that code_interpreter is not permitted.