Skip to content

fix: no payment method - #2706

Merged
thdxr merged 1 commit into
devfrom
fix-no-payment
Sep 20, 2025
Merged

thdxr merged 1 commit into
devfrom
fix-no-payment

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Sep 20, 2025 •

Copy link
Copy Markdown
Collaborator

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

@rekram1-node
rekram1-node requested review from fwang and thdxr September 20, 2025 07:22
@thdxr
thdxr merged commit d63ce40 into dev Sep 20, 2025
@thdxr
thdxr deleted the fix-no-payment branch February 1, 2026 03:32
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
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.

AI_APICallError: No payment method - Code Supernova

2 participants