Skip to content

Commit 3a1d310

Browse files
fix: default prompt cache (#137)
1 parent df21f5d commit 3a1d310

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/serious-queens-fry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"hai-build-code-generator": patch
3+
---
4+
5+
Enablement of prompt cache by default may cause minor issues in some scenarios.

src/core/storage/state.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export async function getAllExtensionState(context: vscode.ExtensionContext, wor
361361
awsSessionToken,
362362
awsRegion,
363363
awsUseCrossRegionInference,
364-
awsBedrockUsePromptCache: awsBedrockUsePromptCache ?? true,
364+
awsBedrockUsePromptCache,
365365
awsBedrockEndpoint,
366366
awsProfile,
367367
awsUseProfile,

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ const ApiOptions = ({ showModelOptions, showModelError = true, isPopup, onValid
688688
{selectedModelInfo.supportsPromptCache && (
689689
<>
690690
<VSCodeCheckbox
691-
checked={apiConfiguration?.awsBedrockUsePromptCache ?? true}
691+
checked={apiConfiguration?.awsBedrockUsePromptCache || false}
692692
onChange={(e: any) => {
693693
const isChecked = e.target.checked === true
694694
setApiConfiguration({

0 commit comments

Comments
 (0)