Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Xeron2000/openOii
/ functions
Functions
2,741 in github.com/Xeron2000/openOii
⨍
Functions
2,741
◇
Types & classes
555
↳
Endpoints
77
↓ 2 callers
Method
_extract_task_id
从 API 响应中提取异步任务 ID。
backend/app/services/video.py:34
↓ 2 callers
Method
_extract_url_from_result
从完成的任务响应中提取视频 URL,支持多种 API 响应格式。
backend/app/services/video.py:119
↓ 2 callers
Method
_ffmpeg_mix
执行 FFmpeg 混流命令 构建复杂的 FFmpeg filter_graph 将视频原始音频 + TTS + BGM 混合。 Args: video_path: 视频文件本地路径 tts_path: TTS 文件
backend/app/services/audio_service.py:321
↓ 2 callers
Method
_get_cache_client
获取或创建用于缓存图片的 HTTP 客户端(连接复用)
backend/app/services/image.py:50
↓ 2 callers
Function
_get_face_analysis
延迟初始化 InsightFace FaceAnalysis(线程安全的单例)
backend/app/services/face_cropper.py:23
↓ 2 callers
Method
_get_headers
获取请求头
backend/app/services/doubao_video.py:68
↓ 2 callers
Function
_get_redis_export_key
(export_id: str)
backend/app/api/v1/routes/export.py:31
↓ 2 callers
Function
_get_run_provider_snapshot
(agent_ctx: Any)
backend/app/orchestration/nodes.py:82
↓ 2 callers
Method
_guess_image_content_type
(self, image_bytes: bytes)
backend/app/services/image.py:83
↓ 2 callers
Function
_initial_state
(start_stage: str)
backend/tests/test_orchestration/test_phase2_graph.py:272
↓ 2 callers
Method
_inline_local_image
(self, image_url: str)
backend/app/agents/critic.py:123
↓ 2 callers
Function
_invalid_provider_resolution
()
backend/tests/test_api/test_phase2_generation.py:52
↓ 2 callers
Method
_is_retryable_status
(self, status_code: int)
backend/app/services/image.py:69
↓ 2 callers
Method
_load_pil_image
加载 PIL Image,失败时返回 None
backend/app/services/export_service.py:85
↓ 2 callers
Function
_lock_prompt
(prompt: str)
backend/app/services/style_prompts.py:127
↓ 2 callers
Function
_missing_credentials_message
(label: str)
backend/app/services/provider_resolution.py:38
↓ 2 callers
Function
_mock_session_maker
(session)
backend/tests/test_db_session.py:15
↓ 2 callers
Function
_next_stage
(stage: str)
backend/app/services/agent_runner.py:21
↓ 2 callers
Function
_optional_text
(value: Any)
backend/app/agents/plan.py:118
↓ 2 callers
Method
_plan_base
(self, payload: dict[str, Any])
backend/app/services/fake_text.py:103
↓ 2 callers
Method
_poll_task_until_done
轮询异步任务直到完成/失败。返回最终的任务数据。
backend/app/services/video.py:154
↓ 2 callers
Method
_raise_for_status
Raise the appropriate TextServiceError subclass based on status code.
backend/app/services/text.py:62
↓ 2 callers
Function
_recovery_control
(run, *, state: str, detail: str)
backend/tests/test_api/test_phase2_generation.py:28
↓ 2 callers
Function
_require_run_id
(run: AgentRun)
backend/app/api/v1/routes/generation.py:59
↓ 2 callers
Function
_resolve_base_stage
Map any stage (production or approval or critique) to its production stage.
backend/app/orchestration/state.py:57
↓ 2 callers
Method
_resolve_bgm_path
解析 BGM 文件路径 Args: bgm_type: BGM 类型名称 Returns: BGM 文件 URL(如 /static/bgm/suspense.mp3),文件不存在返回 None
backend/app/services/audio_service.py:220
↓ 2 callers
Function
_return_resolution
(_project, _settings, resolution: ProviderResolution)
backend/tests/test_api/test_phase2_generation.py:82
↓ 2 callers
Function
_run_export_task
后台导出任务
backend/app/api/v1/routes/export.py:78
↓ 2 callers
Method
_run_review
Execute a single review via the TextService VLM call.
backend/app/agents/critic.py:245
↓ 2 callers
Method
_send_auto_approval_events
( self, project_id: int, run: AgentRun, agent_name: str, agent_ctx: AgentContext | None = None )
backend/app/agents/orchestrator.py:582
↓ 2 callers
Function
_shot_fields
( ctx: AgentContext, shot_data: dict, visual_bible: str, characters: list[Character] )
backend/app/agents/plan.py:169
↓ 2 callers
Method
_shot_response
(self, payload: dict[str, Any])
backend/app/services/fake_text.py:191
↓ 2 callers
Function
_snapshot_from_fields
(entity: Any, fields: Iterable[str])
backend/app/services/version_service.py:96
↓ 2 callers
Method
_stream_native_events
(self, payload: dict[str, Any])
backend/app/services/text.py:323
↓ 2 callers
Function
_style_key
(style: str | None)
backend/app/services/style_prompts.py:92
↓ 2 callers
Function
_sync_driver_url
Return a URL usable by Alembic's synchronous migration engine. The application runtime uses async SQLAlchemy drivers such as ``postgresql+asy
backend/alembic/env.py:37
↓ 2 callers
Function
_text_probe_cache_key
(settings: Settings)
backend/app/services/provider_resolution.py:98
↓ 2 callers
Function
_text_probe_cache_ttl
(result: TextProviderCapability)
backend/app/services/provider_resolution.py:120
↓ 2 callers
Function
_validate_shot_character_ids
( session: AsyncSession, project_id: int, character_ids: list[int] )
backend/app/api/v1/routes/shots.py:79
↓ 2 callers
Function
_write_env_file
(tmp_path, values: dict[str, str])
backend/tests/test_api/test_config.py:22
↓ 2 callers
Method
aiter_lines
(self)
backend/tests/test_services/test_video.py:347
↓ 2 callers
Method
anthropic_env
Anthropic 环境变量(用于 LLMService)
backend/app/config.py:279
↓ 2 callers
Function
apply_character_rerun_edits
( session: AsyncSession, character: Character, *, description: str | None = None, image_ur
backend/app/services/creative_control.py:139
↓ 2 callers
Function
apply_settings_overrides
(overrides: dict[str, Any])
backend/app/config.py:302
↓ 2 callers
Method
auto_snapshot_character
Create a Character snapshot before mutation when entity is persisted.
backend/app/services/version_service.py:228
↓ 2 callers
Method
auto_snapshot_shot
Create a Shot snapshot before mutation when entity is persisted.
backend/app/services/version_service.py:247
↓ 2 callers
Function
buildProject
(id: number, overrides: Partial<Project> = {})
frontend/app/pages/ProjectsPage.test.tsx:119
↓ 2 callers
Function
build_character_bible
将角色的 visual_notes + description 合并为一段"角色圣经"文本。 Args: character: Character 对象 Returns: 合并后的圣经文本
backend/app/services/character_bible.py:30
↓ 2 callers
Function
centerOf
(shape: TLShape | TLShapePartial)
frontend/app/features/comic-workflow/canvas/syncTldrawProjection.ts:244
↓ 2 callers
Function
checkpoint_sessionmaker
( tmp_path: Path, )
backend/tests/conftest.py:91
↓ 2 callers
Method
close
()
frontend/tests/e2e/workflow-stage-sync.spec.ts:57
↓ 2 callers
Method
close
(self)
backend/aiosqlite/__init__.py:56
↓ 2 callers
Method
compose_and_save_reference_image
拼接参考图并保存到本地,返回 URL Args: shot_image_url: 分镜图片 URL character_image_urls: 角色图片 URL 列表 Returns:
backend/app/services/image_composer.py:130
↓ 2 callers
Function
compose_videos_node
( state: Phase2State, runtime: Runtime[Phase2RuntimeContext] )
backend/app/orchestration/nodes.py:304
↓ 2 callers
Function
compute_face_embedding
下载角色图片,调用 face_cropper.detect_faces() 提取 embedding。 Args: image_url: 角色图片 URL Returns: 512 维 embedding 向量列表,无法提取则返回 None
backend/app/services/character_bible.py:53
↓ 2 callers
Function
connect
( database: str | Path, *, iter_chunk_size: int = 64, # kept for compatibility, unused loop:
backend/aiosqlite/__init__.py:185
↓ 2 callers
Function
coro
()
backend/tests/test_services/test_task_manager.py:44
↓ 2 callers
Function
create_message
( session: AsyncSession, run_id: int, project_id: int, agent: str = "system", role: str =
backend/tests/factories.py:51
↓ 2 callers
Function
deleteWorkflowShapes
(editor: Editor, shapes: TLShape[])
frontend/app/features/comic-workflow/canvas/syncTldrawProjection.ts:425
↓ 2 callers
Function
delete_project_by_id
(session: AsyncSession, project_id: int)
backend/app/services/project_deletion.py:125
↓ 2 callers
Function
done_coro
()
backend/tests/test_services/test_task_manager.py:64
↓ 2 callers
Function
errorMessage
(error: unknown, fallback: string)
frontend/app/pages/ProjectsPage.tsx:72
↓ 2 callers
Function
errorMessage
(error: unknown, fallback: string)
frontend/app/features/comic-workflow/sidebar/WorkspaceSidebar.tsx:40
↓ 2 callers
Method
evaluate_project_consistency
评估整个项目的角色一致性。 Args: project: 项目 session: 数据库会话 run_id: 关联的 AgentRun ID(可选) Returns:
backend/app/services/consistency_eval.py:153
↓ 2 callers
Method
export_webtoon
导出竖屏 Webtoon 长图 布局规则: - 竖向拼接所有分镜图 - 每个分镜之间加间距条(白色或黑色渐变) - 分镜编号标记 - 对白文本叠加 - 顶部加标题条 - 最终输出 PNG
backend/app/services/export_service.py:349
↓ 2 callers
Method
extract_face_embedding_from_image
从图片 URL 提取人脸 embedding。 下载图片 → detect_faces → 取最高置信度人脸的 embedding Args: image_url: 图片路径(本地 /static/ 路径或 HTTP URL)
backend/app/services/consistency_eval.py:243
↓ 2 callers
Function
fake_log
(*args, **kwargs)
backend/tests/test_agents/test_orchestrator.py:666
↓ 2 callers
Function
fetchFormApi
( endpoint: string, formData: FormData, method = "POST", )
frontend/app/services/api.ts:163
↓ 2 callers
Function
frameForCards
({ x, y, cardWidth, cardHeight, columns, count, minWidth, minHeight, }: { x: number; y: number; car
frontend/app/features/comic-workflow/graph/layoutComicWorkflow.ts:56
↓ 2 callers
Method
generate
( self, *, messages: list[dict[str, Any]] | None = None, prompt: str | None =
backend/app/services/fake_text.py:296
↓ 2 callers
Method
generate_url_from_bytes
从图片字节流生成视频 将图片字节转为 base64 data URI 后调用 generate_url。 Args: prompt: 视频描述文本 image_bytes: 图片字节流 mim
backend/app/services/doubao_video.py:332
↓ 2 callers
Method
get
(self, *args, **kwargs)
backend/tests/test_api/test_characters.py:49
↓ 2 callers
Function
getAdminHeaders
()
frontend/app/services/api.ts:25
↓ 2 callers
Function
getEffectiveUnlockRank
(input: Pick<WorkspaceProjectionInput, "currentStage" | "recoverySummary">)
frontend/app/utils/workspaceStatus.ts:92
↓ 2 callers
Function
getOutputState
({ project, blockingClips, }: { project: Project; blockingClips: BlockingClip[]; })
frontend/app/features/comic-workflow/graph/buildComicWorkflow.ts:48
↓ 2 callers
Function
getProviderLabel
(key: string)
frontend/app/components/project/ProviderSelectionFields.tsx:78
↓ 2 callers
Function
getTestConnectionService
()
frontend/app/components/settings/SettingsModal.tsx:120
↓ 2 callers
Function
getWorkflowStageUnlockRank
( stage: string | null | undefined, )
frontend/app/utils/workflowStage.ts:84
↓ 2 callers
Function
getWorkspaceSectionStatusBadgeClass
(state: WorkspaceSectionState | string)
frontend/app/utils/workspaceStatus.ts:263
↓ 2 callers
Function
get_consistency_eval_service
获取 ConsistencyEvalService 单例
backend/app/services/consistency_eval.py:339
↓ 2 callers
Function
get_pillow_font_path
获取 Pillow 可用的字体路径 Pillow 需要 TTF/OTF 文件(不支持 TTC)。
backend/app/services/font_utils.py:225
↓ 2 callers
Method
get_project_characters
获取项目的所有角色 Args: ctx: Agent 上下文 Returns: 角色列表
backend/app/agents/base.py:252
↓ 2 callers
Function
get_reportlab_font_name
获取 reportlab 中可用的中文字体注册名称 如果系统有 TTC 字体,使用 CID 字体名称; 否则注册 TTF/OTF 字体并返回注册名称。
backend/app/services/font_utils.py:173
↓ 2 callers
Function
get_session
()
backend/app/db/session.py:195
↓ 2 callers
Method
get_state_history
(self, *_args, **_kwargs)
backend/tests/test_orchestration/test_phase2_recovery.py:59
↓ 2 callers
Method
get_versions
Return all versions for an entity, newest first.
backend/app/services/version_service.py:153
↓ 2 callers
Function
hasShotOrderChanged
(current: number[], next: number[])
frontend/app/features/comic-workflow/canvas/syncTldrawProjection.ts:589
↓ 2 callers
Method
image_headers
图像服务请求头
backend/app/config.py:258
↓ 2 callers
Method
import_shared_character_to_project
将共享角色导入项目
backend/app/services/universe_service.py:217
↓ 2 callers
Function
invalidate_character_downstream_outputs
( session: AsyncSession, project: Project, character_id: int, )
backend/app/services/creative_control.py:156
↓ 2 callers
Function
invalidate_shot_clip_output
( session: AsyncSession, project: Project, )
backend/app/services/creative_control.py:194
↓ 2 callers
Function
invalidate_shot_storyboard_outputs
( session: AsyncSession, project: Project, shot: Shot, )
backend/app/services/creative_control.py:178
↓ 2 callers
Function
isLoopbackHost
(hostname: string)
frontend/app/utils/runtimeBase.ts:21
↓ 2 callers
Function
isTransientProgressMessage
(msg: AgentMessage)
frontend/app/hooks/useWebSocket.ts:232
↓ 2 callers
Function
isWorkflowArrow
(shape: TLShape | TLShapePartial)
frontend/app/features/comic-workflow/canvas/syncTldrawProjection.ts:174
↓ 2 callers
Function
isWorkflowStage
(value: unknown)
frontend/app/utils/workflowStage.ts:67
↓ 2 callers
Method
list_effective
(self)
backend/app/services/config_service.py:289
↓ 2 callers
Function
make_settings
(**overrides)
backend/tests/test_services/test_audio_service.py:13
↓ 2 callers
Method
match_bgm
根据场景描述和表情匹配 BGM 通过关键词匹配确定情绪类型,返回对应 BGM 文件路径。 如果 BGM 未启用或无匹配文件,返回 None。 Args: scene: 场景描述 expression:
backend/app/services/audio_service.py:186
↓ 2 callers
Method
mix_audio_into_video
用 FFmpeg 将 TTS 和 BGM 混入视频 逻辑: 1. 如果有 TTS,将 TTS 叠加到视频音轨 2. 如果有 BGM,将 BGM 作为背景音混入(降低音量) 3. 保留视频原始音频(如果有) 4. FFm
backend/app/services/audio_service.py:236
← previous
next →
401–500 of 2,741, ranked by callers