Commit History
-
refactor: 将有头浏览器打码从 patchright 改为 playwright
genz27 +1: Warp- browser_captcha.py: 所有 patchright 引用改为 playwright - flow_client.py: 更新错误提示信息 - requirements.txt: patchright 改为 playwright Co-Authored-By: Warp <agent@warp.dev>260483d -
feat: 添加浏览器打码依赖自动安装和Docker环境检测
genz27 +1: WarpCo-Authored-By: Warp <agent@warp.dev>5817830 -
feat: 添加浏览器打码依赖自动安装和Docker环境检测
genz27 +1: Warp- browser_captcha.py: 添加patchright和chromium自动安装(官方源优先,国内镜像备用) - browser_captcha_personal.py: 添加nodriver自动安装(官方源优先,国内镜像备用) - 两个模块都添加Docker环境检测,Docker中禁用本地浏览器打码 - flow_client.py: 更新错误处理,提供更清晰的安装指引 - .gitignore: 添加browser_data_rt目录 Co-Authored-By: Warp <agent@warp.dev>8358864
-
Merge pull request #57 from Zluo003/patch-1
GenzUnverified signatureUpdate URL for batch async video upsamplingb633567
-
fix: 修复单帧图生视频 model_key 转换逻辑
修复 I2V 单帧模式下 _fl 后缀去除失败的问题。 原逻辑仅处理 _fl_ 在中间的情况,但实际模型名称 _fl 在结尾: - veo_3_1_i2v_s_fast_ultra_fl 应转为 veo_3_1_i2v_s_fast_ultra 现在同时处理两种情况: 1. _fl_ 在中间: replace("_fl_", "_") 2. _fl 在结尾: endswith("_fl") 后截取 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>a570ba7
-
Update URL for batch async video upsampling
Zluo003Unverified signature56f75f1
-
fix: 修复打码配置热加载和模型转换问题
genz27 +1: Warp- 修复热加载缺少 ezcaptcha/capmonster/capsolver 配置同步 - EZ-Captcha 改用 ReCaptchaV3TaskProxylessS9 高分值版本 - 获取不到 reCAPTCHA token 时直接返回错误 - 修复 TIER_TWO portrait 模型名称转换错误 Co-Authored-By: Warp <agent@warp.dev>749a764 -
fix: 统一视频模型命名为官方格式
genz27 +1: Warp- 修正 model_id (字典 key) 和 model_key 为统一的官方命名 - 竖屏 ultra: portrait 在 ultra 之前 (如 veo_3_1_t2v_fast_portrait_ultra) - 横屏 ultra: 没有 landscape 后缀 (如 veo_3_1_t2v_fast_ultra) - 适用于所有 T2V、I2V、R2V 模型及其 4K/1080P 放大版本 Co-Authored-By: Warp <agent@warp.dev>deb4314 -
fix: 修复各个代码文件中对action参数的调用
genz27 +1: Warp- 将FLOW_GENERATION替换为IMAGE_GENERATION/VIDEO_GENERATION - browser_captcha_personal.py: get_token/execute方法支持action参数 - flow_client.py: _get_api_captcha_token支持动态action - 更新数据库和模型的默认值 - 添加GitHub Actions工作流用于构建ghcr.io镜像 Co-Authored-By: Warp <agent@warp.dev>c42cf8e -
fix: 修复 Windows 上 patchright asyncio 兼容性问题
genz27 +1: Warp自动设置 PLAYWRIGHT_BROWSERS_PATH 环境变量,用户无需额外配置 Co-Authored-By: Warp <agent@warp.dev>f2d92d1 -
refactor: replace playwright with patchright for better anti-detection
genz27 +1: Warp- Switch from playwright to patchright (anti-detection fork) - Keeps all existing UA pool and route interception logic - Better bypass for reCAPTCHA detection Co-Authored-By: Warp <agent@warp.dev>97a2ac3 -
fix: 图片放大改用 IMAGE_GENERATION action
genz27 +1: WarpCo-Authored-By: Warp <agent@warp.dev>a727623
-
feat: 改进4K放大重试逻辑和日志大字段截断
genz27 +1: Warp- 4K放大失败时使用通用重试逻辑,支持403、reCAPTCHA、超时等多种错误类型 - 日志记录时对 encodedImage 等大字段进行截断处理,避免4K base64数据撑爆日志 Co-Authored-By: Warp <agent@warp.dev>0c95869 -
更新:1.本地打码方式修改为有头并增加并行(可设置启动浏览器数量)2.修复flow视频和图片请求体报错400 3.新增图片和视频画质提升包括4K,2K以及1080p等 4.调整管理员端配置UI布局
genz27 +1: WarpCo-Authored-By: Warp <agent@warp.dev>99bedf8
-
Merge branch 'main' of https://github.com/TheSmallHanCat/flow2api
aec69d2 -
feat: 支持更多打码平台
49d8e1d
-
Merge pull request #39 from NetLops/sz
TheSmallHanCatUnverified signatureWIPad17d67
-
feat(api): support remote image URL downloading in chat completion
- Extract image from URL or base64 instead of base64 only - Add support for downloading remote image URLs starting with http/https - Implement error handling for image download failures - Add debug logging for image processing steps fix(config): update model keys for veo_3_0 video generation - Update veo_3_0_r2v_fast_portrait model key to veo_3_0_r2v_fast_portrait_ultra_relaxed - Update veo_3_0_r2v_fast_landscape model key to veo_3_0_r2v_fast_ultra_relaxed92006a0
-
优化ultra用户生成视频与不同的账号使用不同的 ua
yibaibaefae661
-
feat(token): add automatic ST refresh functionality for personal mode
- Implement automatic ST (Session Token) refresh when AT refresh fails - Add refresh_session_token method in BrowserCaptchaService to extract __Secure-next-auth.session-token from browser cookies - Enhance token_manager to automatically retry AT refresh after ST update - Add validation for AT tokens to ensure they are actually working - Update README to document AT/ST automatic refresh feature - Improve error handling and logging for token refresh operations - Add conditional ST refresh support only available in personal mode063e810 -
feat(i2v): enhance image-to-video documentation and single/dual frame support
- Update README.md to clarify single vs dual frame image support with automatic model_key selection - Add detailed explanation of automatic adaptation system for different image counts - Include clear distinction between single frame mode (1 image) and dual frame mode (2 images) with proper model selection fix(browser-captcha): increase page load timeout from 15s to 60s - Extend retry range from 15 to 60 attempts for page loading - Update debug logging to reflect new timeout values - Improve reliability of captcha service by allowing more time for page load completion fix(api): correct I2V API endpoint URL for single frame generation - Change URL from batchAsyncGenerateVideoStartAndEndImage to batchAsyncGenerateVideoStartImage for single frame scenarios fix(model-config): correct model_key for I2V single frame mode - Fix typo in model_key: remove duplicate 'fl_' in veo_3_1_i2v_s_fast_fl_landscape - Implement automatic model_key transformation for single frame mode b…91dcd8f
-
feat: 普通账号支持使用banana pro模型
7fc098b -
feat: 浏览器拓展更新st自动启用token、新增ultra模型、完善日志记录显示
d96fe18
-
feat(browser-captcha): support multi-project resident tabs for reCAPTCHA
- Add ResidentTabInfo class to manage per-project resident tab information - Replace single resident tab with dictionary mapping project_id to tab info - Implement automatic resident tab creation for each project_id on demand - Add thread-safe lock protection for resident tab operations - Update stop_resident_mode to support closing specific project tabs - Add _create_resident_tab method for project-specific tab creation - Add _close_resident_tab method for proper tab cleanup - Maintain backward compatibility with existing single resident mode properties - Update status query methods to support multiple resident tabs - Clear resident tabs dictionary when browser closes9291512 -
feat(generation): handle media generation failure status
- Add specific handling for MEDIA_GENERATION_STATUS_FAILED status - Extract error code and message from operation response - Update database task status to failed with error details - Provide user-friendly error messages with retry suggestions - Add streaming support for error messages in real-time - Improve error handling for various failure scenarios6d28e78 -
feat(browser-captcha): add resident mode for persistent reCAPTCHA token generation
- Implement resident mode that maintains a persistent tab for instant token generation - Add automatic project ID detection from active tokens during initialization - Support fallback to traditional mode when no active project ID is available - Add proper sandbox configuration and profile directory handling for nodriver - Implement reCAPTCHA loading with retry mechanism and error handling - Add legacy mode as fallback when resident mode fails - Include comprehensive logging for both resident and legacy modes - Add browser state management and cleanup functions2f3b0a4 -
feat(browser): replace playwright with nodriver for captcha service
- Add nodriver dependency for advanced browser automation - Replace BrowserCaptchaService implementation with nodriver-based solution - Remove headless environment detection logic as nodriver handles this natively - Update browser captcha service to use undetected-chromedriver successor - Maintain persistent browser profiles for login state preservation fix(models): update video model keys for portrait and landscape variants - Change veo_3_1_i2v_s_fast_fl to veo_3_1_i2v_s_fast_portrait_fl_ultra_relaxed - Change veo_3_1_i2v_s_fast_fl to veo_3_1_i2v_s_fast_landscape_fl_ultra_relaxed - Ensure proper aspect ratio configuration for video generation models747d0cd -
feat: add auto-detection for headless environments and auto-switch captcha modes
- Add helper function to detect headless/Docker environments in main.py - Implement auto-downgrade from personal to browser captcha mode in headless environments - Show warning messages when switching modes automatically - Update FlowClient to accept database instance for captcha configuration config: update default server port and enable proxy by default - Change default server port from 8000 to 18282 in config/setting.toml - Enable proxy by default with localhost:7897 URL - Update Docker and docker-compose configurations to use port 38000 for API build: add China mirror sources for faster dependency installation - Configure Debian apt to use Tsinghua University mirrors - Set PyPI to use Tsinghua University index with trusted host - Configure Playwright to download from npmmirror for faster installation chore: update gitignore to exclude data and config files - Add data directory to .gitignore - Exclude config/setting.toml and config/setting_warp.toml from version control docs:…c21f770
-
fix: 文件缓存
feat: 自动更新st接口35d960d
-
feat: align with main branch
dantynoel7d10a66 -
fork: 个人用途可以在内置浏览器上登录对应的谷歌账号,测试可行
dantynoel3cb9e04
-
feat: 为无头模式设置独立代理
a1b7357 -
fix: 无头模式下代理不生效
f63c37f -
feat: 无头打码与YesCaptcha打码
de31fe0
-
feat: 触发429自动禁用和解禁
a665c0c
-
fix: 图片模型多图支持、重置错误计数
feat: 账号类型分配模型配额 Fixes #5,#7fcd61c6
-
fix: 错误次数计数、调试配置持久化、用量统计计算、日志输出
Fixes #2, #329f247e
-
fix: 配置热重载、错误处理
Fixes #1586f720
-
fix: token编辑保存
0d06c50 -
fix:修复图片输出格式
cc54647 -
feat:flow2api初版
36cbcc0