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

免费学习该课程!

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

Challenge: Using tools when required

Challenge: Using tools when required

(bright electronic music) - [Instructor] In this challenge, we're going to continue working on our Moneychanger App. Now, one of the problems with our app is that if we were to now ask a non-exchange-related question, it would fail. So, let me give you an example. So, Why is the sky blue, for example? And you can see we get a TypeError, because we aren't able to pass the output that's been returned. So, using the documentation for the large language model provider of your choice, ensure that your app uses the function calling tools for exchange-related questions, and provides a response from the large language model for non-exchange-related questions. So, using moneychanger.py, make these changes in the run_pipeline() function.

内容