MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / CaptchaConfig

Class CaptchaConfig

src/core/models.py:188–215  ·  view source on GitHub ↗

Captcha configuration

Source from the content-addressed store, hash-verified

186
187
188class CaptchaConfig(BaseModel):
189 """Captcha configuration"""
190
191 id: int = 1
192 captcha_method: str = "browser" # yescaptcha/capmonster/ezcaptcha/capsolver/browser/personal/remote_browser
193 yescaptcha_api_key: str = ""
194 yescaptcha_base_url: str = "https://api.yescaptcha.com"
195 yescaptcha_task_type: str = "RecaptchaV3TaskProxylessM1S9"
196 capmonster_api_key: str = ""
197 capmonster_base_url: str = "https://api.capmonster.cloud"
198 ezcaptcha_api_key: str = ""
199 ezcaptcha_base_url: str = "https://api.ez-captcha.com"
200 capsolver_api_key: str = ""
201 capsolver_base_url: str = "https://api.capsolver.com"
202 remote_browser_base_url: str = ""
203 remote_browser_api_key: str = ""
204 remote_browser_timeout: int = 60
205 website_key: str = "6LdsFiUsAAAAAIjVDZcuLhaHiDn5nnHVXVRQGeMV"
206 page_action: str = "IMAGE_GENERATION"
207 browser_proxy_enabled: bool = False # 浏览器打码是否启用代理
208 browser_proxy_url: Optional[str] = None # 浏览器打码代理URL
209 browser_count: int = 1 # 浏览器打码实例数量
210 personal_project_pool_size: int = 4 # 单个 Token 默认维护的项目池数量(仅影响项目轮换)
211 personal_max_resident_tabs: int = 5 # 内置浏览器单实例共享打码标签页数量上限
212 browser_personal_fresh_restart_every_n_solves: int = 10 # 成功打码多少次后清理并重启浏览器,0表示禁用
213 personal_idle_tab_ttl_seconds: int = 600 # 内置浏览器标签页空闲超时(秒)
214 created_at: Optional[datetime] = None
215 updated_at: Optional[datetime] = None
216
217
218class PluginConfig(BaseModel):

Callers 1

get_captcha_configMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected