Building a Chatbot with OpenAI, Shiny, & R - Part 2: Shiny App Build

  Рет қаралды 2,604

James Wade

James Wade

Күн бұрын

In this video, we build a basic chatbot app using the OpenAI API and Shiny. The app allows you to select a model (gpt-3.5-turbo or gpt-4), choose a task/prompt for the model, enter a message, and get a response. I walk through creating inputs (text area, select inputs, action button), storing the message history in a reactive value, calling the OpenAI API with our helper functions, and displaying the responses. We also add a nice theme to polish it off. Overall, this gives you an idea of how to start building your own chatbot apps with OpenAI and Shiny!
Link to code: github.com/jam...
Shiny: shiny.posit.co/
{bslib}: rstudio.github...
Mastering Shiny: mastering-shin...
OpenAI API Documentation: platform.opena...
Tags: #r #shiny #chatbot #openai #gpt3 #nlp #api #gpt4 #chatgpt #rstats #machinelearning #ai #artificialintelligence

Пікірлер: 7
To Brawl AND BEYOND!
00:51
Brawl Stars
Рет қаралды 17 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Elon Musk on Sam Altman and ChatGPT: I am the reason OpenAI exists
5:18
CNBC Television
Рет қаралды 2,1 МЛН
How to run Shiny Apps in your browser with WebR (webr.bundle)
6:01
Andres Quintero
Рет қаралды 4,2 М.
OMG: ChatGPT inside RStudio!
10:29
Michel's Science Speedrun
Рет қаралды 19 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,8 МЛН
What if all the world's biggest problems have the same solution?
24:52
ChatGPT in RStudio with gptstudio - Better than GitHub Copilot?
11:33