Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(func): support for function calling in OpenAI API (#149)
- Add support for function calling in OpenAI API - Add support for parallel function calls in certain models - Allow function calling in the following models: gpt-4, gpt-4-turbo-preview, gpt-4-0125-preview, gpt-4-1106-preview, gpt-4-0613, gpt-3.5-turbo, gpt-3.5-turbo-0125, gpt-3.5-turbo-1106 - Add a check for the model version to allow function calling - Change the client struct to include a new field for the model version - Update the `allowFuncCall` function to check the model version and return true if the model supports function calling Signed-off-by: appleboy <appleboy.tw@gmail.com>
- Loading branch information