zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.61k stars 2.78k forks source link

Set Assistant panel default model (to GP4) #4547

Closed dctanner closed 6 months ago

dctanner commented 1 year ago

Check for existing issues

Describe the feature

I'd like to be able to set the default model the Assistant panel uses to gpt-4, so I don't have to click it every time to change.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

Moshyfawn commented 6 months ago

I believe you can already do this by providing the assistant config default_model.

{
  "assistant": {
    "provider": {
      "type": "openai",
      "api_url": "https://api.openai.com/v1",
      "default_model": "gpt-4-1106-preview"
    }
  }
}

Moreover, the gpt-4-1106-preview is currently the default model without providing the config.

I'll close this as resolved.