zed-industries/zed · error · LanguageModelCompletionError

is not available in . Try switching to a region where this…

Error message

{display_name} is not available in {region}. Try switching to a region where this model is supported.

What it means

User-facing translation of a Bedrock ValidationException in BedrockModel's streaming path: Bedrock rejected the request with a validation error whose message contains "model identifier is invalid", meaning the chosen model ID does not exist in the configured AWS region (wrong region for this model, model not enabled/subscribed there, or a stale model id). The raw AWS message is replaced with this actionable message naming the model's display name and region.

Solutions

  1. Switch the Bedrock region setting to one where the model is available
  2. Verify the model is enabled/subscribed for your AWS account in that region (model access in the Bedrock console)
  3. Check that the configured model id/region pair hasn't changed (AWS retires or renames model ids)
  4. Retry after changing region; the underlying error is deterministic, not transient
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at crates/language_models/src/provider/bedrock.rs:984 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@916fc2b8cb (2026-08-20). Data as JSON: /api/errors/a4fbaf2b9b65e549. Report an issue: GitHub.

Appendix: source

Thrown at crates/language_models/src/provider/bedrock.rs:987

            self.model.default_temperature(),
            self.model.max_output_tokens(),
            self.model.thinking_mode(),
            self.model.supports_caching(),
            self.model.supports_tool_use(),
            guardrail_identifier,
            guardrail_version,
        ) {
            Ok(request) => request,
            Err(err) => return futures::future::ready(Err(err.into())).boxed(),
        };

        let request = self.stream_completion(request, cx);
        let display_name = self.model.display_name().to_string();
        let executor = cx.background_executor().clone();
        let future = self.request_limiter.stream(async move {
            let response = request.await.map_err(|err| match err {
                BedrockError::Validation(ref msg) => {
                    if msg.contains("model identifier is invalid") {
                        LanguageModelCompletionError::from_provider_response(
                            PROVIDER_NAME,
                            None,
                            Some("ValidationException".to_string()),
                            format!(
                                "{display_name} is not available in {region}. \
                                 Try switching to a region where this model is supported."
                            ),
                            None,
                            ProviderErrorCategory::InvalidRequest,
                        )
                    } else {
                        LanguageModelCompletionError::from_provider_response(
                            PROVIDER_NAME,
                            None,
                            Some("ValidationException".to_string()),
                            msg.clone(),
                            None,

View on GitHub (pinned to 916fc2b8cb)