Interactive 'OpenAI' Model Integration in 'RStudio'


[Up] [Top]

Documentation for package ‘PacketLLM’ version 0.1.0

Help Pages

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_active_history, which handles model locking and title setting.
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 Gets the full object of 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_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