Skip to content

Stop upstreams that generate too slowly; pin core v0.87.0 - #392

Merged
fylorn merged 2 commits into
devfrom
feat/min-speed
Oct 30, 2026
Merged

fylorn merged 2 commits into
devfrom
feat/min-speed

Conversation

@fylorn

@fylorn fylorn commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Adds the per-upstream minimum generation speed from core 0.87.0 (#391).

  • Upstream dialog: "Stop when generation is slower than [ ] tokens/s for [20] seconds", next to the concurrency limit (advanced settings, and the ChatGPT account section). An empty speed turns it off; the measuring period defaults to 20. Both fields are validated on the spot (1-1000, 5-120).
  • The form round-trips ProviderInput.min_speed; import and share links carry min_speed / min_speed_window.
  • A request ended for being too slow shows its speed, live (RequestFailed.tokens_per_sec) and from history.
  • Chinese text for gw.upstream.too_slow and config.min_speed_range.
  • Pins core v0.87.0 and regenerates tw-api.ts.

🤖 Generated with Claude Code

fylorn and others added 2 commits October 30, 2026 22:26
Adds the per-upstream minimum generation speed to the upstream dialog:
"Stop when generation is slower than [ ] tokens/s for [20] seconds",
next to the concurrency limit (advanced settings, and the ChatGPT
account section). Leaving the speed empty turns it off; the measuring
period defaults to 20 and is filled in. Both fields are validated on
the spot (1-1000, 5-120) and block saving when wrong.

- Form model: round-trips ProviderInput.min_speed; advanced settings
  open when a speed is set.
- Import links: new min_speed / min_speed_window parameters (window
  left out when 20; not on account links), carried by sharing and
  prefilled on import.
- Chinese text for gw.upstream.too_slow.

ProviderView.min_speed / ProviderInput.min_speed are typed by hand in
src/types.ts (marked TEMP) until the core release that generates them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replaces the hand-written min_speed types with the generated ones,
adds the Chinese text for config.min_speed_range, and fills the speed
cell of a live row from RequestFailed.tokens_per_sec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit 1fcb3c3 into dev Oct 30, 2026
6 checks passed
@fylorn
fylorn deleted the feat/min-speed branch October 30, 2026 18:25
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant