in

Building a Chatbot with OpenAI, Shiny, & R – Part 1: Use GPT-4 with OpenAI API in R



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: https://github.com/JamesHWade/r-chatbot/blob/master/chatbot-part1-query-openai-api.qmd
Project repo: https://github.com/JamesHWade/r-chatbot
{httr2}: https://httr2.r-lib.org/
OpenAI API documentation: https://platform.openai.com/docs/api-reference/chat
{openai}: https://irudnyts.github.io/openai/
Posit Cloud: https://posit.cloud/

#rstats #openai #tidyverse #httr #httr2 #chatgpt #programming #tutorial #chatbot #machinelearning #ai #nlp #shiny #chatbot #gpt4 #gpt3

OpenAI Accidentally Leaked Its Upcoming o1 Model to Anyone With a Certain Web Address

OpenAI Accidentally Leaked Its Upcoming o1 Model to Anyone With a Certain Web Address

AIPressRoom Exclusive | Thomas Bradley on Enhancing the Home Cooking Experience with Drizzlelemons