feat(serverless): sync OpenAPI 0.6.0 and treat 402 as quota - #121
Conversation
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.
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Summary
shortfall,effectiveMaxWorkers, logsort/prevCursor, workerq, andgpusPerWorker1|2|4|8.paymentRequiredso create, scale, activate, and resume print the credit shortfall as a quota error instead of a server error.ListAppErrorswrapper for the request-error page.Test plan
go test ./internal/api/serverless/make testmake lintshortfalland is categorized as quota