zed icon indicating copy to clipboard operation
zed copied to clipboard

Mismatch between settings.json schema and expected value

Open chasewalden opened this issue 11 months ago • 1 comments

Summary

JSON lsp incorrectly warns about an invalid value when using Bedrock.

Description

When using AWS Bedrock as the model provider, there is a warning in settings.json, even though the value was set my the model select dropdown in the assistant panel.

Steps to reproduce:

  1. Open Assistant Panel
  2. Select any Bedrock model in the dropdown
  3. Open settings.json
  4. Observe warning for agent.default_model.provider

Expected Behavior: JSON schema completion hint should match the value actually used.

Actual Behavior: Using UI to set the model creates a JSON warning in settings.json

settings.json

{
  "agent": {
    "default_model": {
      "provider": "amazon-bedrock",
      // ...
    },
    "version": "2"
  },
  // ...
}
Image Image

Zed Version and System Specs

Zed: v0.186.9 (Zed) OS: macOS 15.1.1 Memory: 18 GiB Architecture: aarch64

chasewalden avatar May 15 '25 19:05 chasewalden

@chasewalden Which option does Bedrock or Amazon Bedrock work with? Right now, "bedrock" is in the list

Image

kmpeeduwee avatar May 15 '25 20:05 kmpeeduwee