MCPcopy Create free account

hub / github.com/TheSmallHanCat/flow2api / functions

Functions1,214 in github.com/TheSmallHanCat/flow2api

Methodremote_browser_base_url
Get remote browser captcha service base URL
src/core/config.py:647
Methodremote_browser_timeout
Get remote browser captcha request timeout (seconds)
src/core/config.py:669
Methodremove_browser
(self, browser_id: int)
src/services/browser_captcha.py:3037
Methodreport_flow_error
( self, project_id: str, error_reason: str, error_message: str = "", t
src/services/browser_captcha_personal.py:13797
Methodreport_flow_error
(self, project_id: str, error_reason: str, error_message: str = "")
src/services/browser_captcha_extension.py:212
Functionreset_runtime_prepare
(runtime_kind: str, message: str = "")
src/core/browser_runtime_status.py:89
Methodreset_shared_instances
(cls)
src/services/browser_captcha_personal.py:1856
Methodrestart_task
()
tests/test_browser_captcha_personal.py:270
Methodrestart_unlocked
(project_id, token_id=None, *, fresh_profile=False)
tests/test_browser_captcha_personal.py:229
Methodrunner
()
src/services/token_manager.py:600
Methodrunner
()
tests/test_browser_captcha_personal.py:202
FunctionsaveSettings
()
extension/options.js:44
Methodsend
(self, _cdp_obj, _is_update=False)
tests/test_browser_captcha_personal.py:56
Functionserialize_cookie_header
(raw_cookie: Any, default_url: str = DEFAULT_COOKIE_URL)
src/services/browser_cookie_utils.py:279
Methodserver_host
(self)
src/core/config.py:252
Methodserver_port
(self)
src/core/config.py:256
MethodsetUp
(self)
tests/test_browser_captcha_personal.py:73
Methodset_browser_launch_background
设置有头浏览器打码是否后台启动。
src/core/config.py:418
Functionset_dependencies
Set service instances
src/api/admin.py:549
Functionset_generation_handler
Set generation handler instance.
src/api/routes.py:85
Methodset_polling_mode_enabled
Set polling mode enabled/disabled.
src/core/config.py:344
Methodset_upsample_timeout
Set upsample (4K/2K) timeout in seconds
src/core/config.py:361
Methodsigned_unit
(index: int, scale: float)
src/services/browser_captcha_personal.py:3569
Methodsolve_resident
(*args, **kwargs)
tests/test_browser_captcha_personal.py:243
Functionst_to_at
Convert Session Token to Access Token (仅转换,不添加到数据库)
src/api/admin.py:1078
Methodstart_resident_mode
(self, project_id: str)
src/services/browser_captcha_personal.py:13937
Methodstop_resident_mode
(self, project_id: Optional[str] = None)
src/services/browser_captcha_personal.py:13948
Functionstream_generate_content
Gemini official streamGenerateContent endpoint.
src/api/routes.py:943
Methodsubmit_flow_request
在 browser 模式下于同一浏览器上下文内完成打码并提交 Flow 请求。
src/services/browser_captcha.py:2955
Methodtest_api_captcha_returns_token_and_user_agent
_get_api_captcha_token 必须返回 (token, userAgent) 元组。
tests/test_api_captcha_fingerprint.py:61
Functiontest_captcha_score
使用当前打码方式获取 token,并提交到 antcpt 校验分数。
src/api/admin.py:1933
Methodtest_check_video_status_uses_media_payload_and_normalizes_response
(self)
tests/test_veo_lite_support.py:340
Methodtest_close_clears_resident_tabs_when_warmup_task_attr_missing
(self)
tests/test_browser_captcha_personal.py:117
Methodtest_create_resident_tab_cleans_tab_when_initialization_fails
(self)
tests/test_browser_captcha_personal.py:128
Methodtest_create_resident_tab_returns_none_when_browser_missing
(self)
tests/test_browser_captcha_personal.py:110
Methodtest_cross_day_video_increment_resets_other_daily_counters
(self)
tests/test_daily_stats_reset.py:50
Methodtest_dashboard_stats_ignore_stale_previous_day_counts
(self)
tests/test_daily_stats_reset.py:25
Methodtest_default_duration_models_include_explicit_8s_aliases
(self)
tests/test_veo_lite_support.py:181
Methodtest_direct_upsampler_keys_are_not_public_models
(self)
tests/test_veo_lite_support.py:212
Methodtest_execute_recaptcha_on_tab_accepts_remote_object_success_result
(self)
tests/test_browser_captcha_personal.py:103
Methodtest_explicit_8s_aliases_reuse_default_upstream_keys
(self)
tests/test_veo_lite_support.py:159
Methodtest_force_fresh_flow_error_defers_sync_browser_restart_until_drain
(self)
tests/test_browser_captcha_personal.py:170
Methodtest_generate_video_start_end_uses_v2_payload_for_interpolation_lite
(self)
tests/test_veo_lite_support.py:389
Methodtest_generate_video_text_normalizes_media_only_create_response
(self)
tests/test_veo_lite_support.py:259
Methodtest_generate_video_text_uses_v2_payload_for_lite
(self)
tests/test_veo_lite_support.py:225
Methodtest_get_token_waits_for_pending_fresh_restart_before_resident_pick
(self)
tests/test_browser_captcha_personal.py:212
Methodtest_image_model_follows_reference_image_aspect_ratio
(self)
tests/test_veo_lite_support.py:88
Methodtest_init_config_from_toml_persists_flow_max_retries
(self)
tests/testgeneration_config_max_retries.py:23
Methodtest_nodriver_send_patch_handles_connection_without_closed_attr
(self)
tests/test_browser_captcha_personal.py:346
Methodtest_openai_history_reference_image_can_drive_aspect_ratio
(self)
tests/test_veo_lite_support.py:317
Functiontest_page
Model testing page
src/main.py:325
Methodtest_pending_fresh_restart_task_is_preserved_during_runtime_shutdown
(self)
tests/test_browser_captcha_personal.py:201
Methodtest_pool_dispatch_prefers_cold_idle_worker_over_busy_live_worker
(self)
tests/test_browser_captcha_personal.py:332
Methodtest_pool_tab_limits_use_browser_count_times_per_worker_tabs
(self)
tests/test_browser_captcha_personal.py:312
Methodtest_project_scoped_upload_accepts_media_list_response
(self)
tests/test_flow_client_upload.py:42
Methodtest_project_scoped_upload_does_not_fallback_to_legacy_endpoint
(self)
tests/test_flow_client_upload.py:71
Methodtest_project_scoped_upload_uses_new_endpoint_with_project_id
(self)
tests/test_flow_client_upload.py:11
Functiontest_proxy_connectivity
测试代理是否可访问目标站点(默认 https://labs.google/)
src/api/admin.py:1295
Methodtest_quality_4s_upsample_model_generates_then_upsamples
(self)
tests/test_veo_lite_support.py:143
Methodtest_quality_6s_i2v_1080p_model_generates_then_upsamples
(self)
tests/test_veo_lite_support.py:151
Methodtest_quality_model_does_not_upgrade_to_fake_ultra
(self)
tests/test_veo_lite_support.py:130
Methodtest_r2v_models_include_explicit_landscape_aliases
(self)
tests/test_veo_lite_support.py:199
Methodtest_reload_config_to_memory_syncs_max_retries
(self)
tests/testgeneration_config_max_retries.py:44
Methodtest_resolve_quality_4s_upsample_alias_to_portrait_variant
(self)
tests/test_veo_lite_support.py:36
Methodtest_resolve_quality_8s_alias_to_portrait_variant
(self)
tests/test_veo_lite_support.py:62
Methodtest_resolve_quality_8s_upsample_alias_to_portrait_variant
(self)
tests/test_veo_lite_support.py:75
Methodtest_resolve_t2v_lite_alias_to_portrait_variant
(self)
tests/test_veo_lite_support.py:23
Methodtest_resolve_video_image_size_to_upsample_variant
(self)
tests/test_veo_lite_support.py:49
Methodtest_restart_browser_for_project_reuses_recent_healthy_runtime
(self)
tests/test_browser_captcha_personal.py:143
Methodtest_runtime_surface_profile_contains_extended_browser_environment
(self)
tests/test_browser_captcha_personal.py:290
Methodtest_s7_s9_force_expected_min_score
(self)
tests/test_yescaptcha_task_type.py:23
Methodtest_short_duration_models_include_explicit_landscape_aliases
(self)
tests/test_veo_lite_support.py:167
Methodtest_supported_task_types_are_preserved
(self)
tests/test_yescaptcha_task_type.py:7
Methodtest_tab_evaluate_normalizes_deep_serialized_remote_object
(self)
tests/test_browser_captcha_personal.py:90
Methodtest_tier_two_does_not_upgrade_lite_model_to_fake_ultra
(self)
tests/test_veo_lite_support.py:103
Methodtest_tier_two_still_upgrades_regular_model
(self)
tests/test_veo_lite_support.py:117
Methodtest_unknown_task_type_falls_back_to_default
(self)
tests/test_yescaptcha_task_type.py:17
Methodtest_upload_without_project_id_keeps_legacy_fallback
(self)
tests/test_flow_client_upload.py:98
Methodtest_wait_for_pending_fresh_restart_awaits_existing_task
(self)
tests/test_browser_captcha_personal.py:264
Methodtest_wait_for_recaptcha_raises_on_runtime_disconnect
(self)
tests/test_browser_captcha_personal.py:158
Functionupdate_admin_config
Update admin configuration (error_ban_threshold)
src/api/admin.py:1562
Functionupdate_admin_password
Update admin password
src/api/admin.py:1574
Functionupdate_api_key
Update API key (for external API calls, NOT for admin login)
src/api/admin.py:1583
Functionupdate_cache_base_url
Update cache base URL
src/api/admin.py:1760
Functionupdate_cache_config_full
Update complete cache configuration
src/api/admin.py:1733
Functionupdate_cache_enabled
Update cache enabled status
src/api/admin.py:1717
Functionupdate_call_logic_config
Update token call logic configuration.
src/api/admin.py:1406
Functionupdate_captcha_config
Update captcha configuration
src/api/admin.py:1776
Functionupdate_debug_config
Update debug configuration
src/api/admin.py:1598
Methodupdate_debug_config
Update debug configuration
src/core/database.py:1799
Functionupdate_generation_config
Update generation timeout configuration
src/api/admin.py:1372
Functionupdate_generation_timeout
Update generation timeout configuration
src/api/admin.py:1621
Functionupdate_plugin_config
Update plugin configuration
src/api/admin.py:2318
Functionupdate_proxy_config
Update proxy configuration
src/api/admin.py:1277
Methodupdate_proxy_config
Update proxy configuration
src/services/proxy_manager.py:130
Functionupdate_proxy_config_alias
Update proxy configuration (alias for frontend compatibility)
src/api/admin.py:1259
Functionupdate_token
Update token - 使用ST自动刷新AT
src/api/admin.py:913
Functionupdate_token_refresh_config
( request: TokenRefreshConfigRequest, token: str = Depends(verify_admin_token) )
src/api/admin.py:1670
Functionupdate_token_refresh_enabled
Update protocol ST refresh enabled; AT refresh remains always enabled.
src/api/admin.py:1655
Methodupsample_timeout
Get upsample (4K/2K) timeout in seconds
src/core/config.py:357
← previousnext →1,101–1,200 of 1,214, ranked by callers