zed icon indicating copy to clipboard operation
zed copied to clipboard

How to change model for Inline Assist

Open lutfi-haslab opened this issue 1 year ago • 1 comments

I tried inline assist, but after I checked the use of Openai API, it turned out that it was GPT-4 Turbo. How do I change the default model to GPT-3.5 Turbo?

lutfi-haslab avatar Jan 30 '24 02:01 lutfi-haslab

You can change the model in the assistant panel by clicking on the model name:

Screenshot 2024-01-29 at 9 55 13 PM

Looks like we don't yet support specifying a default model via a setting:

https://github.com/zed-industries/zed/blob/9cb5a84b8d37062bdd0f0afe7aeae64f714d1568/crates/assistant/src/assistant_panel.rs#L124-L127

maxdeviant avatar Jan 30 '24 02:01 maxdeviant

I just discovered we do have an assistant.default_open_ai_model setting:

Screenshot 2024-02-05 at 4 54 07 PM

The inline assistant should respect that setting:

https://github.com/zed-industries/zed/blob/a80a3b8706b83e70476ed4a89252b3324edfb391/crates/assistant/src/assistant_panel.rs#L683-L685

maxdeviant avatar Feb 05 '24 21:02 maxdeviant