Skip to content

feat(serverless): sync OpenAPI 0.6.0 and treat 402 as quota - #121

Merged
Ryank90 merged 1 commit into
rc/serverlessfrom
feat/serverless-openapi-sync
Sep 22, 2026
Merged

Ryank90 merged 1 commit into
rc/serverlessfrom
feat/serverless-openapi-sync

Conversation

@Ryank90

@Ryank90 Ryank90 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update the serverless OpenAPI copy for 0.6.0: 402 PaymentRequired + shortfall, effectiveMaxWorkers, log sort/prevCursor, worker q, and gpusPerWorker 1|2|4|8.
  • Regenerate the client and map HTTP 402 to paymentRequired so create, scale, activate, and resume print the credit shortfall as a quota error instead of a server error.
  • Add a typed ListAppErrors wrapper for the request-error page.

Test plan

  • go test ./internal/api/serverless/
  • make test
  • make lint
  • Confirm a live 402 from create/scale/activate/resume prints shortfall and is categorized as quota

The control plane now returns paymentRequired with a shortfall, exposes
effectiveMaxWorkers and log sort/cursors, and accepts 1|2|4|8 GPUs.
Regenerate the client and map 402 so create, scale, activate, and resume
print the credit gap instead of a server error.
@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include coderabbit-review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: f7c81cda-9331-478c-8443-e9a446230ee4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Ryank90
Ryank90 merged commit ed09647 into rc/serverless Sep 22, 2026
4 checks passed
@Ryank90
Ryank90 deleted the feat/serverless-openapi-sync branch September 22, 2026 10:57
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.

2 participants