File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
server/aws-lsp-codewhisperer/src/shared Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -122,19 +122,6 @@ export class StreamingClientServiceToken extends StreamingClientServiceBase {
122
122
this . inflightRequests . add ( controller )
123
123
124
124
try {
125
- // TODO: remove
126
- if ( 1 ) {
127
- const freeTierLimitError = new Error ( )
128
- ; ( freeTierLimitError as any ) . name = 'ThrottlingException'
129
- ; ( freeTierLimitError as any ) . message = 'Free tier limit reached'
130
- ; ( freeTierLimitError as any ) . code = 'ThrottlingException'
131
- ; ( freeTierLimitError as any ) . time = new Date ( )
132
- ; ( freeTierLimitError as any ) . reason = 'MONTHLY_REQUEST_COUNT'
133
- // ;(freeTierLimitError as any).requestId = response.$metadata.requestId
134
- // ;(freeTierLimitError as any).$metadata = { ...response.$metadata }
135
- throw freeTierLimitError
136
- }
137
-
138
125
const response = await this . client . generateAssistantResponse (
139
126
{ ...request , profileArn : this . profileArn } ,
140
127
{
You can’t perform that action at this time.
0 commit comments