Skip to contents

All functions

StreamHandler
Stream handler for chat completions
addin_chatgpt()
Run Chat GPT Run the Chat GPT Shiny App as a background job and show it in the viewer pane
addin_chatgpt_in_source()
ChatGPT in Source
addin_comment_code()
Comment Code Addin
addin_spelling_grammar()
Spelling and Grammar Addin
chat_create_system_prompt()
Create system prompt
chat_history_append()
Append to chat history
chat_message_default()
Default chat message
check_api()
Check API setup
check_api_connection()
Check connection to OpenAI's API works
check_api_key()
Check API key
create_chat_app_theme()
Chat App Theme
create_completion_anthropic()
Generate text completions using Anthropic's API
create_completion_azure_openai()
Generate text using Azure OpenAI's API
create_completion_huggingface()
Generate text completions using HuggingFace's API
create_completion_palm()
Generate text completions using PALM (MakerSuite)'s API
create_ide_matching_colors()
Chat message colors in RStudio
create_tmp_job_script()
Create a temporary job script
create_translator()
Internationalization for the ChatGPT addin
get_available_endpoints()
List supported endpoints
get_available_models()
List supported models
get_ide_theme_info()
Get IDE theme information.
gpt_chat()
ChatGPT in RStudio
gpt_chat_in_source()
ChatGPT in Source
gptstudio_request_perform()
Perform API Request
gptstudio_response_process()
Call API
gptstudio_skeleton_build()
Construct a GPT Studio request skeleton.
mod_app_server()
App Server
mod_app_ui()
App UI
mod_chat_server()
Chat server
mod_chat_ui()
Chat UI
open_bg_shinyapp()
Open browser to local Shiny app
openai_create_chat_completion()
Generate text completions using OpenAI's API for Chat
prepare_chat_history()
Prepare chat completion prompt
query_api_anthropic()
A function that sends a request to the Anthropic API and returns the response.
query_api_huggingface()
A function that sends a request to the HuggingFace API and returns the response.
query_api_palm()
A function that sends a request to the PALM (MakerSuite) API and returns the response.
query_openai_api()
A function that sends a request to the OpenAI API and returns the response.
random_port()
Generate a random safe port number
request_base()
Base for a request to the OPENAI API
request_base_anthropic()
Base for a request to the Anthropic API
request_base_huggingface()
Base for a request to the HuggingFace API
request_base_palm()
Base for a request to the PALM (MakerSuite) API
rgb_str_to_hex()
RGB str to hex
run_app_as_bg_job()
Run an R Shiny app in the background
run_chatgpt_app()
Run the ChatGPT app
stream_chat_completion()
Stream Chat Completion
streamingMessageOutput() renderStreamingMessage()
Shiny bindings for streamingMessage
streamingMessage()
Streaming message
style_chat_history()
Style Chat History
style_chat_message()
Style chat message
text_area_input_wrapper()
Custom textAreaInput
welcomeMessageOutput() renderWelcomeMessage()
Shiny bindings for welcomeMessage
welcomeMessage()
Welcome message