PacketLLM0.1.1 package

Interactive 'OpenAI' Model Integration in 'RStudio'

add_attachment_to_active_conversation

Adds an attachment to the active conversation

add_message_to_active_history

Adds a message to the active conversation's history

add_user_message

Add user message to the active conversation Calls add_message_to_activ...

available_openai_models

List of available OpenAI models for selection in the UI

call_openai_chat

Call OpenAI API

check_api_key

Check API Key

create_new_conversation

Creates a new conversation

delete_conversation

Deletes the conversation with the given ID

get_active_chat_history

Gets the chat history for the active conversation

get_active_conversation_attachments

Gets the list of attachments for the active conversation

get_active_conversation_id

Gets the ID of the active conversation

get_active_conversation

Gets the full object of the active conversation

get_all_conversation_ids

Gets a list of IDs of all existing conversations

get_assistant_response

Get assistant response for the active conversation

get_conversation_attachments

Gets the list of attachments for the conversation with the given ID

get_conversation_data

Gets the full conversation data object for the given ID

get_conversation_history

Gets the chat history for the conversation with the given ID

get_conversation_model

Gets the model name for the conversation with the given ID

get_conversation_title

Gets the title of the conversation with the given ID

initialize_history_manager

Initializes the history manager

is_conversation_started

Checks if the conversation has started (model locked)

parse_pages

Parse page range

read_file_content

Read file content

reset_history_manager

Resets the entire state of the history manager

run_llm_chat_app

Run the LLM Chat Application in RStudio Window

set_active_conversation

Sets the active conversation

set_conversation_model

Sets the model for the conversation, if it hasn't started

set_conversation_system_message

Sets the system message for the conversation with the given ID

set_conversation_temperature

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.

  • Maintainer: Antoni Czolgowski
  • License: MIT + file LICENSE
  • Last published: 2025-08-23