Skip to content

feat(q): builderid "paid tier" flow #1197

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Conversation

justinmk3
Copy link
Contributor

@justinmk3 justinmk3 commented Apr 29, 2025

Problem

When "free tier" limit is reached, there are no clear next steps.

Solution

Handle "free tier exceeded" throttling/quota service error.

Todo

  1) MynahUI
       openTab
         should create a new tab with welcome messages if tabId not passed and previous messages not passed:
     AssertError: expected getChatItems to be called once and with exact arguments 

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@justinmk3 justinmk3 changed the title feat: paid tier feat(q paid tier): handle "free tier exceeded" throttle/quota response Apr 29, 2025
return response
throw e
} finally {
this.inflightRequests.delete(controller)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a potential bug? If the service returns an error (which throws), the inflightRequests would not get updated.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, indeed I think we were not handling service errors. Thanks for working on the fix.

@justinmk3 justinmk3 force-pushed the paidtier branch 4 times, most recently from cab289b to 939e748 Compare May 7, 2025 22:57
@justinmk3 justinmk3 force-pushed the paidtier branch 11 times, most recently from ef043b3 to 1968d12 Compare May 15, 2025 23:16
@justinmk3 justinmk3 force-pushed the paidtier branch 7 times, most recently from b40cd74 to 027e119 Compare May 22, 2025 17:05
justinmk3 added 4 commits May 28, 2025 15:34
1. get latest service models:
    - `client/token/bearer-token-service.json`
        - from: `<AWSVectorConsolasRuntimeServiceModel>/aws-sdk-external-2022-11-11/c2j/codewhispererruntime-2022-11-11.json`
    - `client/sigv4/service.json`
        - from: `<AWSVectorConsolasRuntimeServiceModel>/aws-sdk-external/c2j/codewhisperer-2024-10-25.json`
2. !!NOTE!! remove line `"signatureVersion": "bearer",` from `bearer-token-service.json`
3. restore the script that was mysteriously reverted in
   aws#161 without any
   documented alternative...
4. run `./node_modules/.bin/ts-node server/aws-lsp-codewhisperer/script/genclient.ts`

service model version: 1.0.20901.0
- control MynahUI from Flare server
@justinmk3 justinmk3 changed the title feat(q paid tier): handle "free tier exceeded" throttle/quota response feat(q): builderid "paid tier" flow May 29, 2025
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