SwiftBeta / SwiftOpenAI

OpenAI API build with Swift ❤️
https://www.swiftbeta.com
MIT License
198 stars 18 forks source link

openAI "Call Functions" feature #25

Open JuanDiegoEstrada opened 1 year ago

JuanDiegoEstrada commented 1 year ago

I was checking and I think that at the moment, the parameter for the function call feature is not yet included, since developers interact with the model and retrieve structured data.

Function calling in the OpenAI API is a mechanism that allows models to detect when a specific function needs to be invoked based on user input. Once detected, the model responds with JSON that adheres to the function signature.