Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/11cafe/jaaz
/ functions
Functions
838 in github.com/11cafe/jaaz
⨍
Functions
838
◇
Types & classes
174
↳
Endpoints
73
↓ 2 callers
Function
generate_new_image_element
Generate new image element for canvas
server/tools/utils/image_canvas_utils.py:43
↓ 2 callers
Function
generate_new_video_element
Generate new video element for canvas
server/tools/video_generation/video_canvas_utils.py:248
↓ 2 callers
Function
generate_video_file_id
()
server/tools/video_generation/video_canvas_utils.py:203
↓ 2 callers
Function
getMediaFilesApi
(path: string)
react/src/api/settings.ts:142
↓ 2 callers
Method
getSocketId
()
react/src/lib/socket.ts:164
↓ 2 callers
Function
getTagsFromContent
* @param {string} content - The content of the post * @returns {{tags: string[], content: string}} - The tags of the post and the content without tag
electron/ipcHandlers.js:615
↓ 2 callers
Function
getUserDataDir
* Get user data directory * @returns {string} - User data directory path
electron/comfyUIManager.js:52
↓ 2 callers
Function
getUserDataDir
* Get user data directory * @returns {string} - User data directory path
electron/comfyUIInstaller.js:33
↓ 2 callers
Function
get_asset_path
To get the correct path for pyinstaller bundled application
server/tools/utils/comfyui.py:47
↓ 2 callers
Function
get_asset_path
To get the correct path for pyinstaller bundled application
server/tools/image_providers/comfyui_provider.py:21
↓ 2 callers
Function
get_stream_task
Retrieve the stream task associated with the given session_id. Args: session_id (str): Unique identifier for the session. Retur
server/services/stream_service.py:27
↓ 2 callers
Function
groupModelsByProvider
(models: typeof allTools)
react/src/components/chat/ModelSelectorV3.tsx:48
↓ 2 callers
Function
handle_chat
Handle an incoming chat request. Workflow: - Parse incoming chat data. - Optionally inject system prompt. - Save chat session an
server/services/chat_service.py:17
↓ 2 callers
Function
isComfyUIInstalled
* Check if ComfyUI is installed * @returns {boolean} - True if ComfyUI is installed
electron/comfyUIManager.js:195
↓ 2 callers
Function
isPNG
* 检查PNG文件头
react/src/utils/pngMetadata.ts:51
↓ 2 callers
Method
list_comfy_workflows
List all comfy workflows
server/services/db_service.py:181
↓ 2 callers
Method
list_sessions
List all chat sessions
server/services/db_service.py:109
↓ 2 callers
Method
log_node
(self, type, node_id)
server/routers/comfyui_execution.py:212
↓ 2 callers
Function
mergeToolCallResult
(messages: Message[])
react/src/components/chat/Chat.tsx:112
↓ 2 callers
Method
migrate
Apply or rollback migrations to reach target version
server/services/migrations/manager.py:36
↓ 2 callers
Function
onSelectSession
(sessionId: string)
react/src/components/chat/Chat.tsx:534
↓ 2 callers
Function
readPNGMetadata
(filePath: string)
react/src/utils/pngMetadata.ts:274
↓ 2 callers
Function
readString
* 从ArrayBuffer中读取字符串
react/src/utils/pngMetadata.ts:40
↓ 2 callers
Method
register_tool
注册单个工具
server/services/tool_service.py:211
↓ 2 callers
Function
remove_stream_task
Remove the stream task associated with the given session_id. Args: session_id (str): Unique identifier for the session.
server/services/stream_service.py:18
↓ 2 callers
Function
sendCancelled
* Send cancellation message to main window or parent process * @param {string} message - Cancellation message
electron/comfyUIInstaller.js:273
↓ 2 callers
Function
sendError
* Send error message to main window or parent process * @param {string} error - Error message
electron/comfyUIInstaller.js:245
↓ 2 callers
Function
send_video_error_notification
Send WebSocket notification about video generation error
server/tools/video_generation/video_canvas_utils.py:144
↓ 2 callers
Method
setEnvironment
* 设置环境变量代理 * @param {string} url 代理 URL
electron/settingsService.js:103
↓ 2 callers
Function
stopComfyUIProcess
* Stop ComfyUI process * @returns {Promise<{success: boolean, message?: string}>}
electron/comfyUIManager.js:405
↓ 2 callers
Function
uploadImage
( file: File )
react/src/api/upload.ts:3
↓ 2 callers
Function
useBalance
()
react/src/hooks/use-balance.ts:5
↓ 2 callers
Function
useDebounce
( callback: T, delay: number )
react/src/components/knowledge/Editor.tsx:44
↓ 1 callers
Method
_build_api_url
Build API URL for Volces Cloud
server/tools/video_providers/volces_provider.py:25
↓ 1 callers
Method
_build_headers
Build request headers
server/tools/image_providers/wavespeed_provider.py:22
↓ 1 callers
Method
_build_headers
Build request headers
server/tools/image_providers/replicate_provider.py:18
↓ 1 callers
Method
_build_headers
Build request headers
server/tools/video_providers/volces_provider.py:29
↓ 1 callers
Function
_build_input_schema
Build a Pydantic model named '<WorkflowName>Input' from workflow['inputs']. The `inputs` column is stored in DB as JSON text -> parse first.
server/tools/comfy_dynamic.py:59
↓ 1 callers
Method
_build_payload
Build request payload based on whether input images are provided
server/tools/image_providers/wavespeed_provider.py:39
↓ 1 callers
Method
_build_request_payload
Build request payload for Volces API
server/tools/video_providers/volces_provider.py:36
↓ 1 callers
Method
_build_search_url
Build task search URL
server/tools/image_providers/jaaz_provider.py:47
↓ 1 callers
Method
_build_url
Build request URL for Replicate API
server/tools/image_providers/replicate_provider.py:14
↓ 1 callers
Method
_build_workflow
Build workflow based on model type
server/tools/image_providers/comfyui_provider.py:74
↓ 1 callers
Method
_calculate_dimensions
Calculate width and height based on aspect ratio
server/tools/image_providers/volces_provider.py:42
↓ 1 callers
Method
_calculate_dimensions
Calculate width and height based on aspect ratio and model
server/tools/image_providers/comfyui_provider.py:57
↓ 1 callers
Method
_create_client
Create OpenAI client for Volces API
server/tools/image_providers/volces_provider.py:29
↓ 1 callers
Function
_create_text_model
创建语言模型实例
server/services/langgraph_service/agent_service.py:138
↓ 1 callers
Method
_ensure_db_directory
Ensure the database directory exists
server/services/db_service.py:18
↓ 1 callers
Function
_fix_chat_history
修复聊天历史中不完整的工具调用 根据LangGraph文档建议,移除没有对应ToolMessage的tool_calls 参考: https://langchain-ai.github.io/langgraph/troubleshooting/errors/INVALID_CHAT
server/services/langgraph_service/agent_service.py:23
↓ 1 callers
Method
_generate_openai_image
Generate image using Jaaz API service calling OpenAI model Compatible with OpenAI image generation API Returns:
server/tools/image_providers/jaaz_provider.py:335
↓ 1 callers
Method
_generate_replicate_image
Generate Replicate format image
server/tools/image_providers/jaaz_provider.py:284
↓ 1 callers
Method
_get_model_for_request
Get the appropriate model for the request
server/tools/image_providers/wavespeed_provider.py:64
↓ 1 callers
Method
_handle_chunk
处理单个chunk
server/services/langgraph_service/StreamProcessor.py:44
↓ 1 callers
Function
_handle_error
处理错误
server/services/langgraph_service/agent_service.py:170
↓ 1 callers
Method
_handle_message_chunk
处理消息类型的 chunk
server/services/langgraph_service/StreamProcessor.py:79
↓ 1 callers
Method
_handle_tool_call_chunks
处理工具调用参数流
server/services/langgraph_service/StreamProcessor.py:144
↓ 1 callers
Method
_handle_tool_calls
处理工具调用
server/services/langgraph_service/StreamProcessor.py:111
↓ 1 callers
Method
_handle_values_chunk
处理 values 类型的 chunk
server/services/langgraph_service/StreamProcessor.py:54
↓ 1 callers
Method
_init_db
Initialize the database with the current schema
server/services/db_service.py:22
↓ 1 callers
Method
_is_configured
检查 Jaaz API 是否已配置
server/services/jaaz_service.py:31
↓ 1 callers
Method
_make_request
Send HTTP request and handle response Returns: dict[str, Any]: Response data from Replicate API
server/tools/image_providers/replicate_provider.py:31
↓ 1 callers
Function
_normalize_agent_name
Normalize agent name to be compatible with tool names.
server/services/langgraph_service/configs/base_config.py:15
↓ 1 callers
Method
_poll_for_result
Poll for image generation result
server/tools/image_providers/wavespeed_provider.py:70
↓ 1 callers
Method
_poll_task_status
Poll task status until completion
server/tools/video_providers/volces_provider.py:90
↓ 1 callers
Function
_process_magic_generation
Process magic generation in a separate async task. Args: messages: List of messages session_id: Session ID canvas_id
server/services/magic_service.py:75
↓ 1 callers
Method
_process_response
Process Replicate API response and save image Args: res: Response data from Replicate API Returns:
server/tools/image_providers/replicate_provider.py:48
↓ 1 callers
Method
_process_response
Process OpenAI response and save image Args: result: OpenAI response object error_prefix: Error message pref
server/tools/image_providers/volces_provider.py:52
↓ 1 callers
Function
_python_type
Map simple param types to Python types.
server/tools/comfy_dynamic.py:46
↓ 1 callers
Method
_search_cloud_task
Search for existing cloud task Args: prompt: The generation prompt Returns: Task data if found and
server/tools/image_providers/jaaz_provider.py:67
↓ 1 callers
Method
_wait_for_confirmation
等待确认
server/services/tool_confirmation_manager.py:48
↓ 1 callers
Function
add_connection
(socket_id: str, user_info: dict = None)
server/services/websocket_state.py:12
↓ 1 callers
Function
autoStartComfyUI
()
react/src/App.tsx:72
↓ 1 callers
Function
broadcast_init_done
()
server/services/websocket_service.py:29
↓ 1 callers
Function
build_tool
Return an @tool function for the given workflow record.
server/tools/comfy_dynamic.py:101
↓ 1 callers
Function
calculateFileHash
* Calculate SHA256 hash of a file * @param {string} filePath - Path to the file * @returns {Promise<string>} - Promise resolving to SHA256 hash in h
electron/comfyUIInstaller.js:303
↓ 1 callers
Function
cancelChat
(sessionId: string)
react/src/api/chat.ts:36
↓ 1 callers
Function
cancelInstallation
* Cancel the current ComfyUI installation
electron/comfyUIInstaller.js:46
↓ 1 callers
Function
cancelMagicGenerate
(sessionId: string)
react/src/api/magic.ts:26
↓ 1 callers
Function
changeLanguage
(language: string)
react/src/hooks/use-language.ts:6
↓ 1 callers
Function
checkInstallation
()
react/src/components/settings/ComfyuiSetting.tsx:53
↓ 1 callers
Function
check_comfy_server_running
(base_url)
server/routers/comfyui_execution.py:22
↓ 1 callers
Method
cleanup
Clean up resources
server/services/mcp.py:119
↓ 1 callers
Method
clearProxy
* 清除代理设置 * @returns {Object} 空的代理环境变量对象
electron/settingsService.js:190
↓ 1 callers
Method
clear_tools
(self)
server/services/tool_service.py:246
↓ 1 callers
Function
compressImageFile
(file: File)
react/src/utils/imageUtils.ts:94
↓ 1 callers
Function
compress_image
Compress an image to be under the specified size limit.
server/routers/image_router.py:100
↓ 1 callers
Method
confirm_tool
确认工具调用
server/services/tool_confirmation_manager.py:56
↓ 1 callers
Method
connect_to_server
(self, command: str, args: list[str], env: Optional[dict[str, str]] = None)
server/services/mcp.py:19
↓ 1 callers
Function
createWindow
(pyPort)
electron/main.js:124
↓ 1 callers
Method
create_agents
创建所有智能体 Args: model: 语言模型实例 registered_tools: 已注册的工具名称列表 system_prompt: 系统提示词 Returns:
server/services/langgraph_service/agent_manager.py:18
↓ 1 callers
Method
create_async_client
直接创建异步客户端(需要手动关闭)
server/utils/http_client.py:113
↓ 1 callers
Method
create_canvas
Create a new canvas
server/services/db_service.py:46
↓ 1 callers
Method
create_comfy_workflow
Create a new comfy workflow
server/services/db_service.py:172
↓ 1 callers
Function
create_handoff_tool
Create a tool that can handoff control to the requested agent. Args: agent_name: The name of the agent to handoff control to, i.e.
server/services/langgraph_service/configs/base_config.py:20
↓ 1 callers
Function
create_magic_response
()
server/services/OpenAIAgents_service/test.py:12
↓ 1 callers
Method
create_magic_task
创建云端魔法图像生成任务 Args: image_content: 图片内容(base64 或 URL) Returns: str: 任务 ID,失败时返回空字符串
server/services/jaaz_service.py:42
↓ 1 callers
Method
create_midjourney_task
创建云端 Midjourney 图像生成任务 Args: prompt: 图像生成提示词 model: 图像生成模型(默认为 midjourney) **kwargs: 其他参数(如 mode
server/services/jaaz_service.py:370
↓ 1 callers
Method
create_provider
Factory method: create provider instance
server/tools/video_providers/video_base_provider.py:19
↓ 1 callers
Method
create_video_task
创建云端视频生成任务 Args: prompt: 视频生成提示词 model: 视频生成模型 resolution: 视频分辨率 duration: 视频时长(秒)
server/services/jaaz_service.py:85
↓ 1 callers
Function
deleteCanvas
(id: string)
react/src/api/canvas.ts:70
← previous
next →
101–200 of 838, ranked by callers