Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 23 Oct 13:41
· 93 commits to main since this release

New

  • Workspace credits (#229). If your ChatGPT workspace holds prepaid credits, each account's credits now show in the expanded sidebar, in /openai → Quota, and in Pi's login section, as "Unlimited", "120 credits" or "Available". The plugin reads them from OpenAI's usage check and from each response, on HTTP and WebSocket.
  • Requests use credits only after free quota runs out. When every account has used up its usage limits, requests go to an account that still has credits. An account with free quota left always comes first, and a session on credits moves back to free quota at its next request once some is available. Your quota floors and the workspace's spending cap still block an account as before, and a credits reading older than 15 minutes isn't used. One exception: a request that can't be sent twice goes to the main account, as before. OpenAI reports credits as one balance, so the plugin can't tell granted credits from bought ones. The sidebar shows "serving on credits" for the account in use. Accounts and routing has the details.

Fixed

  • In vault mode, a machine running several OpenCode processes no longer loses quota readings when they save at the same time. Each process now saves its readings in one batch, a moment after it records them, and retries a save that can't get the lock instead of dropping it (common-auth 0.23.0).
  • In vault mode, while insula is still starting up or reports that OpenAI is failing its own checks, the plugin no longer asks OpenAI for every account's usage itself. When insula has no reading for an account for another reason, the plugin still checks that account directly.
  • Quota rows in the expanded sidebar no longer run together ("100% left6d23h") or wrap when the sidebar is narrow. The reset time is left out first, then the bar shortens, and it is dropped when fewer than three cells fit. The "% left" figure is never cut.
  • OpenCode 2's /openai menu showed each account's quota twice. It now shows it once, as OpenCode 1 does.
  • Opening the browser for sign-in on macOS and Linux no longer waits for the browser to start, so a slow or stuck browser launch can't hold up OpenCode.
  • A background vault quota check that fails is now logged as a warning instead of showing as an unhandled error in the server's output.

No upgrade steps are needed.