Interactive 'OpenAI' Model Integration in 'RStudio'
Adds an attachment to the active conversation
Adds a message to the active conversation's history
Add user message to the active conversation Calls add_message_to_activ...
List of available OpenAI models for selection in the UI
Call OpenAI API
Check API Key
Creates a new conversation
Deletes the conversation with the given ID
Gets the chat history for the active conversation
Gets the list of attachments for the active conversation
Gets the ID of the active conversation
Gets the full object of the active conversation
Gets a list of IDs of all existing conversations
Get assistant response for the active conversation
Gets the list of attachments for the conversation with the given ID
Gets the full conversation data object for the given ID
Gets the chat history for the conversation with the given ID
Gets the model name for the conversation with the given ID
Gets the title of the conversation with the given ID
Initializes the history manager
Checks if the conversation has started (model locked)
Parse page range
Read file content
Resets the entire state of the history manager
Run the LLM Chat Application in RStudio Window
Sets the active conversation
Sets the model for the conversation, if it hasn't started
Sets the system message for the conversation with the given ID
Sets the temperature for the conversation with the given ID
Offers an interactive 'RStudio' gadget interface for communicating with 'OpenAI' large language models (e.g., 'gpt-5', 'gpt-5-mini', 'gpt-5-nano') (<https://platform.openai.com/docs/api-reference>). Enables users to conduct multiple chat conversations simultaneously in separate tabs. Supports uploading local files (R, PDF, DOCX) to provide context for the models. Allows per-conversation configuration of system messages (where supported by the model). API interactions via the 'httr' package are performed asynchronously using 'promises' and 'future' to avoid blocking the R console. Useful for tasks like code generation, text summarization, and document analysis directly within the 'RStudio' environment. Requires an 'OpenAI' API key set as an environment variable.
Useful links