MCPcopy Create free account

hub / github.com/abhishekkrthakur/aiaio / functions

Functions158 in github.com/abhishekkrthakur/aiaio

↓ 38 callersMethodconnect
(self, websocket: WebSocket, client_id: str)
src/aiaio/app/app.py:47
↓ 32 callersFunctionshowToast
(message, type = 'success')
src/aiaio/app/static/script.js:1036
↓ 10 callersFunctionshowModal
(title, message, type = 'info', onConfirm = null)
src/aiaio/app/static/script.js:149
↓ 7 callersMethodadd_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 callersMethodbroadcast
(self, message: dict)
src/aiaio/app/app.py:64
↓ 7 callersFunctionloadConversations
()
src/aiaio/app/static/script.js:651
↓ 5 callersFunctionloadModels
(providerId)
src/aiaio/app/static/script.js:1472
↓ 5 callersFunctionstartNewConversation
()
src/aiaio/app/static/script.js:789
↓ 4 callersFunctioncleanup
()
src/aiaio/app/static/script.js:242
↓ 4 callersFunctioncloseInputModal
()
src/aiaio/app/static/script.js:327
↓ 4 callersMethodget_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 callersFunctionopenEditModal
(messageDiv, messageId, content)
src/aiaio/app/static/script.js:1015
↓ 4 callersFunctionupdateAssistantMessage
(content, messageDiv = null)
src/aiaio/app/static/script.js:932
↓ 4 callersFunctionupdateSystemPrompt
()
src/aiaio/app/static/script.js:1246
↓ 4 callersMethodupdate_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 callersFunctioncreateAssistantMessage
(messageId, content = '')
src/aiaio/app/static/script.js:892
↓ 3 callersMethodget_default_provider
Get the default provider with its settings.
src/aiaio/db.py:574
↓ 3 callersFunctionloadProjects
()
src/aiaio/app/static/script.js:486
↓ 3 callersFunctionloadPrompts
()
src/aiaio/app/static/script.js:1256
↓ 3 callersFunctionpopulateProviderForm
(provider)
src/aiaio/app/static/script.js:1461
↓ 3 callersFunctionscrollToBottom
()
src/aiaio/app/static/script.js:375
↓ 3 callersMethodset_generating
(self, client_id: str, is_generating: bool)
src/aiaio/app/app.py:58
↓ 3 callersFunctiontext_streamer
Stream text responses from the AI model.
src/aiaio/app/app.py:219
↓ 3 callersFunctionupdateTopBarInfo
()
src/aiaio/app/static/script.js:1438
↓ 2 callersFunctionappendUserMessage
(content, messageId, attachments = [])
src/aiaio/app/static/script.js:825
↓ 2 callersFunctioncloseProjectModal
()
src/aiaio/app/static/script.js:563
↓ 2 callersFunctioncloseSidebar
()
src/aiaio/app/static/script.js:127
↓ 2 callersFunctionconnectWebSocket
()
src/aiaio/app/static/script.js:413
↓ 2 callersMethodedit_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 callersMethodget_active_prompt
Get the currently active system prompt. Returns: Optional[Dict]: Active prompt data if found, None otherwise
src/aiaio/db.py:781
↓ 2 callersMethodget_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 callersFunctionhandleCancel
()
src/aiaio/app/static/script.js:231
↓ 2 callersFunctionhandleConfirm
()
src/aiaio/app/static/script.js:224
↓ 2 callersFunctioninitializeSettings
()
src/aiaio/app/static/script.js:1410
↓ 2 callersFunctionprocess_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 callersFunctionregenerateResponse
(messageDiv, messageId)
src/aiaio/app/static/script.js:1698
↓ 2 callersMethodset_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 callersFunctionshowInputModal
(title, label, placeholder = '', defaultValue = '')
src/aiaio/app/static/script.js:198
↓ 2 callersFunctionshowMultiInputModal
(title, fields)
src/aiaio/app/static/script.js:252
↓ 2 callersFunctionupdateFilePreviews
()
src/aiaio/app/static/script.js:1205
↓ 1 callersMethod_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 callersMethodadd_model
Add a model to a provider.
src/aiaio/db.py:667
↓ 1 callersMethodadd_provider
Add a new provider.
src/aiaio/db.py:595
↓ 1 callersMethodadd_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 callersFunctioncloseEditModal
()
src/aiaio/app/static/script.js:1056
↓ 1 callersFunctioncloseModal
()
src/aiaio/app/static/script.js:185
↓ 1 callersFunctioncopyToClipboard
(text, button)
src/aiaio/app/static/script.js:400
↓ 1 callersMethodcreate_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 callersMethodcreate_project
Create a new project. Args: name (str): Project name description (str): Project description system_prompt
src/aiaio/db.py:513
↓ 1 callersMethoddelete_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 callersMethoddelete_model
Delete a model.
src/aiaio/db.py:693
↓ 1 callersMethoddelete_project
Delete a project and its conversations.
src/aiaio/db.py:558
↓ 1 callersMethoddelete_provider
Delete a provider (cascade deletes models).
src/aiaio/db.py:635
↓ 1 callersMethoddelete_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 callersMethoddisconnect
(self, client_id: str)
src/aiaio/app/app.py:52
↓ 1 callersMethodedit_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 callersFunctionformatTimestamp
(timestamp)
src/aiaio/app/static/script.js:369
↓ 1 callersFunctiongenerate_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 callersMethodget_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 callersMethodget_all_prompts
Get all system prompts. Returns: List[Dict]: List of all prompts
src/aiaio/db.py:792
↓ 1 callersMethodget_all_providers
Get all providers.
src/aiaio/db.py:581
↓ 1 callersMethodget_attachment
Retrieve attachment details by ID.
src/aiaio/db.py:390
↓ 1 callersMethodget_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 callersMethodget_default_model
Get the default model for a provider.
src/aiaio/db.py:658
↓ 1 callersMethodget_logger
(self)
src/aiaio/logging.py:38
↓ 1 callersMethodget_models_by_provider
Get all models for a provider.
src/aiaio/db.py:649
↓ 1 callersMethodget_project
Get a project by ID.
src/aiaio/db.py:540
↓ 1 callersMethodget_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 callersMethodget_projects
Get all projects.
src/aiaio/db.py:533
↓ 1 callersMethodget_provider_by_id
Get provider by ID.
src/aiaio/db.py:588
↓ 1 callersFunctionhandleProjectChange
(event)
src/aiaio/app/static/script.js:518
↓ 1 callersFunctionhandleWebSocketMessage
(data)
src/aiaio/app/static/script.js:425
↓ 1 callersFunctioninitializeCore
()
src/aiaio/app/static/script.js:79
↓ 1 callersFunctioninitializeEventListeners
()
src/aiaio/app/static/script.js:92
↓ 1 callersFunctionloadVersion
()
src/aiaio/app/static/script.js:1689
↓ 1 callersFunctionmain
()
src/aiaio/cli/aiaio.py:7
↓ 1 callersFunctionopenProjectModal
()
src/aiaio/app/static/script.js:535
↓ 1 callersMethodregister_subcommand
(parser: ArgumentParser)
src/aiaio/cli/run_app.py:17
↓ 1 callersMethodrun
(self)
src/aiaio/cli/run_app.py:50
↓ 1 callersFunctionsetDefaultSettings
(silent = false)
src/aiaio/app/static/script.js:1609
↓ 1 callersMethodset_default_model
Set a model as default for its provider.
src/aiaio/db.py:699
↓ 1 callersMethodset_default_provider
Set a provider as default.
src/aiaio/db.py:641
↓ 1 callersMethodsetup_logger
(self)
src/aiaio/logging.py:34
↓ 1 callersMethodshould_stop
(self, client_id: str)
src/aiaio/app/app.py:61
↓ 1 callersMethodupdate_project
Update a project.
src/aiaio/db.py:547
↓ 1 callersMethodupdate_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
Functionactivate_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
FunctionaddModel
()
src/aiaio/app/static/script.js:1625
Functionadd_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
Functionadd_provider_model
Add a model to a provider.
src/aiaio/app/app.py:649
Functionchat
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
Functionchat_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
FunctioncreateNewProject
()
src/aiaio/app/static/script.js:524
FunctioncreateNewPrompt
()
src/aiaio/app/static/script.js:1342
FunctioncreateNewSettingsConfig
()
src/aiaio/app/static/script.js:1507
Functioncreate_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