modelscope-agent
modelscope-agent copied to clipboard
json schema support array type
oai json schema support array type, fix the following bug:
Error code: 400 - {'error': {'message': "Invalid schema for function 'get_room_layout': In context=('properties', 'objects'), array schema missing items.", 'type': 'invalid_request_error', 'param': 'tools[0].function.parameters', 'code': 'invalid_function_parameters'}}