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

免费学习该课程!

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

Challenge: LLM API call

Challenge: LLM API call

(upbeat music) - [Instructor] One of the key benefits of using GitHub Models is not having to bother managing and maintaining multiple API keys from different model providers. GitHub Models does that for you. Now, in this challenge, we are continuing to build our money changer app. So using moneychanger.py, update the function call_llm to make an API call to the large language model of your choice. Now, ensure you update the requirements.txt file to list any new Python packages that you've installed. And finally, test your web app to confirm this new functionality operates correctly. Now, the best place for you to get boilerplate code to call your large language model is to head over to github.com/marketplace, and then select your model, and then head over to Get API key. And you'll be able to find the code in this section.

内容