Skip to content

v0.2.1 · API credit exhaustion

Latest

Choose a tag to compare

@Zolobaby Zolobaby released this 30 Nov 09:20

Fix API credit-exhaustion handling after a model request fails.

  • Observe actual request headers and terminal credit errors; fold only the exact provider across sessions.
  • Keep the current selection visible and disabled, without silently switching models.
  • Restore after an explicit retry or observed successful response, including assistant settlement events.
  • Expire records after 24 hours; old history and visual-wrapper failures do not hide unrelated routes.
  • Store only provider identifiers, timestamps and status, without error text, credentials or chat content.

Validation: 16 unit tests, browser scenarios including credit-error events and restore behavior, syntax checks and peer review. No real paid API request was made for testing.