Does the OpenAI API execute my function code?
No, the model only tells you *which* function to call and with *what* arguments. You must run the code on your server.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in Understanding OpenAI Function Calling and Tool Use
The model uses the function and parameter descriptions to understand when it should call the function and what data it needs.
Yes, modern models support Parallel Function Calling, allowing them to suggest multiple tool calls in a single turn.
Since the model only returns arguments, you can validate and sanitize inputs in your code before running queries.
Still have questions?
Browse all our FAQs or reach out to our support team
