Skip to main content

HTTP status

400 invalid_request_error

Typical cause

The request includes a tools array but the selected model does not support tool or function calling.

Resolution

Remove the tools parameter or choose a model that supports function calling.