Compare commits

...

1 Commits

Author SHA1 Message Date
CI Bot e07bd899b9 style: auto-format with black + isort + ruff + prettier [skip ci-format-check] 2026-10-10 09:23:05 +00:00
2 changed files with 0 additions and 3 deletions
@@ -974,7 +974,6 @@ def _step_script_generation(
last_emit = 0.0
MIN_INTERVAL = 0.25 # 至少 250ms 一次,约 4 次/秒
MIN_CHARS = 40 # 累积 ~40 字符才推送
TAG_CLOSE_CHARS = ("</", "\n", ">", "\n\n")
def _flush(force: bool = False):
nonlocal last_emit, pending_delta_buf
-2
View File
@@ -408,7 +408,6 @@ class DoubaoClient:
payload.update(kwargs)
_t0 = time.time()
last_error: Optional[Exception] = None
for attempt in range(self.max_retries + 1):
try:
_req_timeout = httpx.Timeout(connect=10.0, read=120.0, write=30.0, pool=10.0)
@@ -454,7 +453,6 @@ class DoubaoClient:
)
return
except Exception as e:
last_error = e
if attempt < self.max_retries:
wait = 0.5 * (2**attempt)
logger.warning(