Skip to content

Commit f87e1b9

Browse files
committed
fix(bedrock): disable cross-region inference when global inference is enabled
1 parent 15526fa commit f87e1b9

File tree

1 file changed

+2
-0
lines changed
  • webview-ui/src/components/settings/providers

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ export const Bedrock = ({ apiConfiguration, setApiConfigurationField, selectedMo
152152
{supportsGlobalInference && (
153153
<Checkbox
154154
checked={apiConfiguration?.awsUseGlobalInference || false}
155+
disabled={apiConfiguration?.awsUseCrossRegionInference || false}
155156
onChange={(checked: boolean) => {
156157
// Enabling Global Inference should disable cross-region inference
157158
setApiConfigurationField("awsUseGlobalInference", checked)
@@ -162,6 +163,7 @@ export const Bedrock = ({ apiConfiguration, setApiConfigurationField, selectedMo
162163
)}
163164
<Checkbox
164165
checked={apiConfiguration?.awsUseCrossRegionInference || false}
166+
disabled={apiConfiguration?.awsUseGlobalInference || false}
165167
onChange={(checked: boolean) => {
166168
setApiConfigurationField("awsUseCrossRegionInference", checked)
167169
if (checked) setApiConfigurationField("awsUseGlobalInference", false)

0 commit comments

Comments
 (0)