课程: Creating Advanced AI Applications with Python, APIs, and GitHub Models

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Solution: Function calling

Solution: Function calling

(upbeat music) - [Instructor] Now in order to add function calling capability to our large language model, we need to spend some time looking at the documentation for our model provider. Now in this case, I'm going to be using OpenAI. Unfortunately, since I've recorded this video, the documentation at OpenAI around function calling has changed. So head over to the GitHub repo for this course and copy the code from there. And so do take some time to take a look at this documentation. Right, so you can see that in function calling, it looks like we have an additional tool section that we need to add. And this is the definition of the tools. I scroll down a little bit further, there's an image that explains what function calling is all about. And then I've got the advanced usage and a couple of examples that I can look at. So spend a couple of minutes to work your way through this documentation. Now it looks like the first section that we'll need is "Tools." So let me go ahead and grab…

内容