Рет қаралды 4,154
In this tutorial, you'll learn how to query the OpenAI API from R using the {httr2} package. We'll focus on the chat capabilities of the API and build a function to get responses from gpt-3.5-turbo model or gpt-4. This video is the first in a series where we'll build an interactive chatbot using Shiny and R.
Helpful Links:
Code from this video: github.com/Jam...
Project repo: github.com/Jam...
{httr2}: httr2.r-lib.org/
OpenAI API documentation: platform.opena...
{openai}: irudnyts.githu...
Posit Cloud: posit.cloud/
#rstats #openai #tidyverse #httr #httr2 #chatgpt #programming #tutorial #chatbot #machinelearning #ai #nlp #shiny #chatbot #gpt4 #gpt3