Skip to content

Commit b10e029

Browse files
committed
Switch to @smithy/node-http-handler
1 parent 7ff3022 commit b10e029

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/api/providers/bedrock.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
Message,
88
SystemContentBlock,
99
} from "@aws-sdk/client-bedrock-runtime"
10-
import { NodeHttpHandler } from "@aws-sdk/node-http-handler"
10+
import { NodeHttpHandler } from "@smithy/node-http-handler"
1111
import { fromIni } from "@aws-sdk/credential-providers"
1212
import { Anthropic } from "@anthropic-ai/sdk"
1313
import * as vscode from "vscode"
@@ -306,8 +306,6 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH
306306
return new NodeHttpHandler({
307307
httpAgent,
308308
httpsAgent,
309-
// 0 = no timeout (let Bedrock stream indefinitely until our own AbortController cancels)
310-
requestTimeout: 0,
311309
})
312310
} catch (err) {
313311
logger.warn("Failed to initialize custom NodeHttpHandler; falling back to default", {

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@
422422
"@anthropic-ai/vertex-sdk": "^0.7.0",
423423
"@aws-sdk/client-bedrock-runtime": "^3.848.0",
424424
"@aws-sdk/credential-providers": "^3.848.0",
425-
"@aws-sdk/node-http-handler": "^3.848.0",
425+
"@smithy/node-http-handler": "^3.0.0",
426426
"@google/genai": "^1.0.0",
427427
"@lmstudio/sdk": "^1.1.1",
428428
"@mistralai/mistralai": "^1.3.6",

src/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"types": ["vitest/globals"],
34
"esModuleInterop": true,
45
"experimentalDecorators": true,
56
"forceConsistentCasingInFileNames": true,

0 commit comments

Comments
 (0)