Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abhishekkrthakur/aiaio
/ functions
Functions
158 in github.com/abhishekkrthakur/aiaio
⨍
Functions
158
◇
Types & classes
17
↳
Endpoints
38
↓ 38 callers
Method
connect
(self, websocket: WebSocket, client_id: str)
src/aiaio/app/app.py:47
↓ 32 callers
Function
showToast
(message, type = 'success')
src/aiaio/app/static/script.js:1036
↓ 10 callers
Function
showModal
(title, message, type = 'info', onConfirm = null)
src/aiaio/app/static/script.js:149
↓ 7 callers
Method
add_message
Add a new message to a conversation. Args: conversation_id (str): ID of the conversation role (str): Role of the mess
src/aiaio/db.py:289
↓ 7 callers
Method
broadcast
(self, message: dict)
src/aiaio/app/app.py:64
↓ 7 callers
Function
loadConversations
()
src/aiaio/app/static/script.js:651
↓ 5 callers
Function
loadModels
(providerId)
src/aiaio/app/static/script.js:1472
↓ 5 callers
Function
startNewConversation
()
src/aiaio/app/static/script.js:789
↓ 4 callers
Function
cleanup
()
src/aiaio/app/static/script.js:242
↓ 4 callers
Function
closeInputModal
()
src/aiaio/app/static/script.js:327
↓ 4 callers
Method
get_conversation_history
Retrieve the full history of a conversation including attachments. Args: conversation_id (str): ID of the conversation R
src/aiaio/db.py:346
↓ 4 callers
Function
openEditModal
(messageDiv, messageId, content)
src/aiaio/app/static/script.js:1015
↓ 4 callers
Function
updateAssistantMessage
(content, messageDiv = null)
src/aiaio/app/static/script.js:932
↓ 4 callers
Function
updateSystemPrompt
()
src/aiaio/app/static/script.js:1246
↓ 4 callers
Method
update_conversation_summary
Update the summary of a conversation. Args: conversation_id (str): ID of the conversation summary (str): New summary
src/aiaio/db.py:716
↓ 3 callers
Function
createAssistantMessage
(messageId, content = '')
src/aiaio/app/static/script.js:892
↓ 3 callers
Method
get_default_provider
Get the default provider with its settings.
src/aiaio/db.py:574
↓ 3 callers
Function
loadProjects
()
src/aiaio/app/static/script.js:486
↓ 3 callers
Function
loadPrompts
()
src/aiaio/app/static/script.js:1256
↓ 3 callers
Function
populateProviderForm
(provider)
src/aiaio/app/static/script.js:1461
↓ 3 callers
Function
scrollToBottom
()
src/aiaio/app/static/script.js:375
↓ 3 callers
Method
set_generating
(self, client_id: str, is_generating: bool)
src/aiaio/app/app.py:58
↓ 3 callers
Function
text_streamer
Stream text responses from the AI model.
src/aiaio/app/app.py:219
↓ 3 callers
Function
updateTopBarInfo
()
src/aiaio/app/static/script.js:1438
↓ 2 callers
Function
appendUserMessage
(content, messageId, attachments = [])
src/aiaio/app/static/script.js:825
↓ 2 callers
Function
closeProjectModal
()
src/aiaio/app/static/script.js:563
↓ 2 callers
Function
closeSidebar
()
src/aiaio/app/static/script.js:127
↓ 2 callers
Function
connectWebSocket
()
src/aiaio/app/static/script.js:413
↓ 2 callers
Method
edit_message
Edit an existing message's content. Args: message_id (str): ID of the message to edit new_content (str): New message
src/aiaio/db.py:830
↓ 2 callers
Method
get_active_prompt
Get the currently active system prompt. Returns: Optional[Dict]: Active prompt data if found, None otherwise
src/aiaio/db.py:781
↓ 2 callers
Method
get_prompt_by_id
Get a specific system prompt by ID. Args: prompt_id (int): ID of the prompt to retrieve Returns: Optional[Di
src/aiaio/db.py:803
↓ 2 callers
Function
handleCancel
()
src/aiaio/app/static/script.js:231
↓ 2 callers
Function
handleConfirm
()
src/aiaio/app/static/script.js:224
↓ 2 callers
Function
initializeSettings
()
src/aiaio/app/static/script.js:1410
↓ 2 callers
Function
process_and_stream
Inner generator function to process the chat and stream responses. Yields: str: Chunks of the AI
src/aiaio/app/app.py:920
↓ 2 callers
Function
regenerateResponse
(messageDiv, messageId)
src/aiaio/app/static/script.js:1698
↓ 2 callers
Method
set_active_prompt
Set a prompt as active and deactivate all others. Args: prompt_id (int): ID of the prompt to activate Returns:
src/aiaio/db.py:767
↓ 2 callers
Function
showInputModal
(title, label, placeholder = '', defaultValue = '')
src/aiaio/app/static/script.js:198
↓ 2 callers
Function
showMultiInputModal
(title, fields)
src/aiaio/app/static/script.js:252
↓ 2 callers
Function
updateFilePreviews
()
src/aiaio/app/static/script.js:1205
↓ 1 callers
Method
_init_db
Initialize the database schema. Creates tables if they don't exist or if the database is new. Also handles schema migrations for exis
src/aiaio/db.py:109
↓ 1 callers
Method
add_model
Add a model to a provider.
src/aiaio/db.py:667
↓ 1 callers
Method
add_provider
Add a new provider.
src/aiaio/db.py:595
↓ 1 callers
Method
add_system_prompt
Add a new system prompt. Args: name (str): Name of the prompt text (str): Prompt text Returns: i
src/aiaio/db.py:731
↓ 1 callers
Function
closeEditModal
()
src/aiaio/app/static/script.js:1056
↓ 1 callers
Function
closeModal
()
src/aiaio/app/static/script.js:185
↓ 1 callers
Function
copyToClipboard
(text, button)
src/aiaio/app/static/script.js:400
↓ 1 callers
Method
create_conversation
Create a new conversation. Args: project_id (str, optional): ID of the project the conversation belongs to. Returns:
src/aiaio/db.py:259
↓ 1 callers
Method
create_project
Create a new project. Args: name (str): Project name description (str): Project description system_prompt
src/aiaio/db.py:513
↓ 1 callers
Method
delete_conversation
Delete a conversation and all its associated messages and attachments. Args: conversation_id (str): ID of the conversation to del
src/aiaio/db.py:446
↓ 1 callers
Method
delete_model
Delete a model.
src/aiaio/db.py:693
↓ 1 callers
Method
delete_project
Delete a project and its conversations.
src/aiaio/db.py:558
↓ 1 callers
Method
delete_provider
Delete a provider (cascade deletes models).
src/aiaio/db.py:635
↓ 1 callers
Method
delete_system_prompt
Delete a system prompt. Args: prompt_id (int): ID of the prompt to delete Returns: bool: True if successful,
src/aiaio/db.py:817
↓ 1 callers
Method
disconnect
(self, client_id: str)
src/aiaio/app/app.py:52
↓ 1 callers
Method
edit_system_prompt
Edit an existing system prompt. Args: prompt_id (int): ID of the prompt to edit name (str): New name for the prompt
src/aiaio/db.py:745
↓ 1 callers
Function
formatTimestamp
(timestamp)
src/aiaio/app/static/script.js:369
↓ 1 callers
Function
generate_safe_filename
Generate a safe filename with timestamp to prevent collisions. Args: original_filename (str): Original filename to be sanitized
src/aiaio/app/app.py:762
↓ 1 callers
Method
get_all_conversations
Retrieve all conversations with their message counts and last activity. Args: project_id (str, optional): Filter by project ID.
src/aiaio/db.py:463
↓ 1 callers
Method
get_all_prompts
Get all system prompts. Returns: List[Dict]: List of all prompts
src/aiaio/db.py:792
↓ 1 callers
Method
get_all_providers
Get all providers.
src/aiaio/db.py:581
↓ 1 callers
Method
get_attachment
Retrieve attachment details by ID.
src/aiaio/db.py:390
↓ 1 callers
Method
get_conversation_history_upto_message_id
Retrieve the full history of a conversation including attachments up to but not including a message_id. Args: conversation_id (st
src/aiaio/db.py:399
↓ 1 callers
Method
get_default_model
Get the default model for a provider.
src/aiaio/db.py:658
↓ 1 callers
Method
get_logger
(self)
src/aiaio/logging.py:38
↓ 1 callers
Method
get_models_by_provider
Get all models for a provider.
src/aiaio/db.py:649
↓ 1 callers
Method
get_project
Get a project by ID.
src/aiaio/db.py:540
↓ 1 callers
Method
get_project_for_conversation
Get the project associated with a conversation. Args: conversation_id (str): ID of the conversation Returns:
src/aiaio/db.py:493
↓ 1 callers
Method
get_projects
Get all projects.
src/aiaio/db.py:533
↓ 1 callers
Method
get_provider_by_id
Get provider by ID.
src/aiaio/db.py:588
↓ 1 callers
Function
handleProjectChange
(event)
src/aiaio/app/static/script.js:518
↓ 1 callers
Function
handleWebSocketMessage
(data)
src/aiaio/app/static/script.js:425
↓ 1 callers
Function
initializeCore
()
src/aiaio/app/static/script.js:79
↓ 1 callers
Function
initializeEventListeners
()
src/aiaio/app/static/script.js:92
↓ 1 callers
Function
loadVersion
()
src/aiaio/app/static/script.js:1689
↓ 1 callers
Function
main
()
src/aiaio/cli/aiaio.py:7
↓ 1 callers
Function
openProjectModal
()
src/aiaio/app/static/script.js:535
↓ 1 callers
Method
register_subcommand
(parser: ArgumentParser)
src/aiaio/cli/run_app.py:17
↓ 1 callers
Method
run
(self)
src/aiaio/cli/run_app.py:50
↓ 1 callers
Function
setDefaultSettings
(silent = false)
src/aiaio/app/static/script.js:1609
↓ 1 callers
Method
set_default_model
Set a model as default for its provider.
src/aiaio/db.py:699
↓ 1 callers
Method
set_default_provider
Set a provider as default.
src/aiaio/db.py:641
↓ 1 callers
Method
setup_logger
(self)
src/aiaio/logging.py:34
↓ 1 callers
Method
should_stop
(self, client_id: str)
src/aiaio/app/app.py:61
↓ 1 callers
Method
update_project
Update a project.
src/aiaio/db.py:547
↓ 1 callers
Method
update_provider
Update provider settings.
src/aiaio/db.py:614
Method
__init__
Initialize the database connection. Args: db_path (str, optional): Path to the SQLite database file. Defaults to "chatbot.db".
src/aiaio/db.py:100
Method
__init__
(self, port, host, workers)
src/aiaio/cli/run_app.py:45
Method
__init__
(self)
src/aiaio/app/app.py:43
Method
__post_init__
(self)
src/aiaio/logging.py:24
Function
activate_prompt
Set a prompt as the active system prompt. Args: prompt_id (int): ID of the prompt to activate Returns: dict: Operation
src/aiaio/app/app.py:1221
Function
addModel
()
src/aiaio/app/static/script.js:1625
Function
add_message
Add a message to a conversation. Args: conversation_id (str): Target conversation ID message (MessageInput): Message data to
src/aiaio/app/app.py:419
Function
add_provider_model
Add a model to a provider.
src/aiaio/app/app.py:649
Function
chat
Handle chat requests with support for file uploads and streaming responses. Args: message (str): User's message system_promp
src/aiaio/app/app.py:825
Function
chat_again
This endpoint is used to regenerate the response of a message in a conversation at any point in time. Args: message (str): User's me
src/aiaio/app/app.py:1028
Function
createNewProject
()
src/aiaio/app/static/script.js:524
Function
createNewPrompt
()
src/aiaio/app/static/script.js:1342
Function
createNewSettingsConfig
()
src/aiaio/app/static/script.js:1507
Function
create_conversation
Create a new conversation. Returns: dict: New conversation ID Raises: HTTPException: If creation fails
src/aiaio/app/app.py:399
next →
1–100 of 158, ranked by callers