Skip to content

fix: select quota endpoint by credential - #232

Open
victor0602 wants to merge 1 commit into
mainfrom
codex/fix-sdk-quota-endpoint
Open

fix: select quota endpoint by credential#232
victor0602 wants to merge 1 commit into
mainfrom
codex/fix-sdk-quota-endpoint

Conversation

@victor0602

@victor0602 victor0602 commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • share credential-aware quota endpoint selection between the CLI and SDK
  • route sk-api- API keys to /account/query_balance
  • keep OAuth and Token Plan credentials on /v1/token_plan/remains
  • expose the accurate SDK response union with public type guards
  • document both quota response shapes and cover options, config-file, and OAuth credentials

Validation

  • bun test test/sdk/quota.test.ts
  • bun run typecheck
  • bun run lint
  • bun test (452 passed)

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

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.

1 participant