Skip to content

Dev - #38

Merged
FANATFANATA merged 8 commits into
prodfrom
dev
Sep 16, 2026
Merged

Dev#38
FANATFANATA merged 8 commits into
prodfrom
dev

Conversation

@FANATFANATA

Copy link
Copy Markdown
Owner

Pull Request Template

Description

Brief description of changes.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • CI/CD update

Testing

  • Tests pass locally
  • PoW solvers tested (C + JS)
  • Live tests if applicable

Checklist

  • My code follows the project style
  • I have performed a self-review
  • No new warnings from linters
  • Documentation updated if needed

FANATFANATA and others added 8 commits September 15, 2026 23:16
- stream content live in tool mode, hide only tool-call JSON, emit tool_call_deltas at end
- remove standalone empty-choices chunk, carry session_id in finish/usage chunks
- guarantee role delta for empty responses; map TIMEOUT/INCOMPLETE/WIP to length
- deepseek/qwen usage from provider deльtas, no double prompt counting
- bodies: request/attachment size limits, parallel PoW fetch, skip aclose on locked sem
- reactivate broken accounts (revive_broken), per-session locks, LRU affinity/usage eviction
- parser fixes: dict messages, backreference XML tags, URL-safe bare json, single-pass unescape
- qwen: append image markdown, cumulative-token deltas, image url split across SSE chunks
- pow: quoted difficulty/expire_at, hex buffer guard, LE digest compare, early-stop flag, JS keccak fallback
- responses: reasoning_tokens estimate, deferred output_item.added until tool name known
…, BYOK reuse, bounded stores

- CORS: allow_origins/credentials via DANYAPI_CORS_ORIGINS (no wildcard+credentials)
- request logging: skip body read without content-length or beyond MAX_LOGGED_BODY
- PowManager: single-flight _ensure_build dedupes concurrent PoW solves
- attachments uploaded under account lock inside collect funcs (no semaphore escape)
- BYOK pool close: deferred client close for busy accounts instead of leaking
- _collect_reduced returns matched variant tool_mode/tool_schemas
- JsonStore maxsize eviction; responses store bounded by DANYAPI_RESPONSES_MAX_RECORDS
- sessions: release per-session locks on TTL/LRU eviction
- image_generations: single httpx client, 502 when no data
- tools/_xml_value: drop dead string-reencode branch
- setup.py: check_qwen_token accepts nested data.id; app.py solver paths; Dockerfile python:3.12-slim
@FANATFANATA
FANATFANATA merged commit 857f2aa into prod Sep 16, 2026
16 of 17 checks passed
@FANATFANATA
FANATFANATA deleted the dev branch September 16, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant