Skip to content

Commit b4f288c

Browse files
committed
fix(bedrock): enforce mutual exclusion when enabling cross-region inference (disable global inference)
1 parent a02975d commit b4f288c

File tree

1 file changed

+4
-1
lines changed
  • webview-ui/src/components/settings/providers

1 file changed

+4
-1
lines changed

webview-ui/src/components/settings/providers/Bedrock.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ export const Bedrock = ({ apiConfiguration, setApiConfigurationField, selectedMo
162162
)}
163163
<Checkbox
164164
checked={apiConfiguration?.awsUseCrossRegionInference || false}
165-
onChange={handleInputChange("awsUseCrossRegionInference", noTransform)}>
165+
onChange={(checked: boolean) => {
166+
setApiConfigurationField("awsUseCrossRegionInference", checked)
167+
if (checked) setApiConfigurationField("awsUseGlobalInference", false)
168+
}}>
166169
{t("settings:providers.awsCrossRegion")}
167170
</Checkbox>
168171
{selectedModelInfo?.supportsPromptCache && (

0 commit comments

Comments
 (0)