[PR #2706] fix: no payment method #10411

Closed
opened 2026-02-16 18:15:03 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2706

State: closed
Merged: Yes


fixes: #2703

selectModelProvider handles case where no key is present:

    if (!authInfo) {
      providers = providers.filter((provider) => provider.allowAnonymous)
      if (providers.length === 0) throw new AuthError("Missing API key.")
    }

but if a key was present it was always doing billing checks even if not needed

double check my logic because I am pretty sleepy rn but this seems correct

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2706 **State:** closed **Merged:** Yes --- fixes: #2703 selectModelProvider handles case where no key is present: ``` if (!authInfo) { providers = providers.filter((provider) => provider.allowAnonymous) if (providers.length === 0) throw new AuthError("Missing API key.") } ``` but if a key was present it was always doing billing checks even if not needed double check my logic because I am pretty sleepy rn but this seems correct
yindo added the pull-request label 2026-02-16 18:15:03 -05:00
yindo closed this issue 2026-02-16 18:15:03 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10411