Skip to content

fix: harden streaming, PoW solver, sessions, affinity and usage tracking - #37

Closed
FANATFANATA wants to merge 2 commits into
prodfrom
dev
Closed

FANATFANATA wants to merge 2 commits into
prodfrom
dev

Conversation

@FANATFANATA

Copy link
Copy Markdown
Owner
  • 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

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 2 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
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