🚨 **Primary Error:** functions and function_call are deprecated in favor of tools and tool_choice
✅ **Resolution:** Wrap each function schema in tools=[{type: 'function', function: {...}}] and replace function_call with tool_choice; handle tool_calls in the response.