What I'm doing:
- createChatCompletion with the model name, user message, and functions which contains more than 1 function and all the required paramenters. I then check if the model wants to use a function, if yes I get the function name, and I then have a Switch/Case Statement that runs the method depending on the returned function.
Is this the correct way to do it, especially the swicth/case part to actually run the functions? This is just what I thought of but I am not sure if there is a better/easier or more integrated way to do it.
Thanks.