Open Grebyn35 opened 4 months ago
I had the same issue, here is the fix:
https://community.openai.com/t/create-assistants-api-broken-since-2-16-2024/629996
move the required after properties but within parameters like below: { "type": "function", "function": { "name": "getNickname", "description": "Get the nickname of a city", "parameters": { "type": "object", "properties": { "location": {"type": "string", "description": "The city and state e.g. San Francisco, CA"}, }, "required": ["location"] }
I think OpenAi has changed some parameter when creating an assistant and setting tools.
When creating an assistant:
An error occurs:
Might be because tools has null as a parameter, and it doesnt accept it unless its AssistantToolsEnum.FUNCTION?