ZIm/crates/assistant/src
Danilo Leal 187356ab9b
assistant: Show only configured models in the model picker (#20392)
Closes https://github.com/zed-industries/zed/issues/16568

This PR introduces some changes to how we display models in the model
selector within the assistant panel. Basically, it comes down to this:

- If you don't have any provider configured, you should see _all_
available models in the picker
- But, once you've configured some, you should _only_ see models from
them in the picker

Visually, nothing's changed much aside from the added "Configured
Models" label at the top to ensure the understanding that that's a list
of, well, configured models only. 😬

<img width="700" alt="Screenshot 2024-11-07 at 23 42 41"
src="https://github.com/user-attachments/assets/219ed386-2318-43a6-abea-1de0cda8dc53">

Release Notes:

- Change model selector in the assistant panel to only show configured
models
2024-11-08 10:08:59 -03:00
..
context Fix regression in producing sections when converting SlashCommandOutput to event stream (#20404) 2024-11-08 09:29:14 +01:00
slash_command Fix regression in producing sections when converting SlashCommandOutput to event stream (#20404) 2024-11-08 09:29:14 +01:00
tools Scope slash commands, context servers, and tools to individual Assistant Panel instances (#20372) 2024-11-07 18:23:25 -05:00
assistant.rs Scope slash commands, context servers, and tools to individual Assistant Panel instances (#20372) 2024-11-07 18:23:25 -05:00
assistant_panel.rs assistant: Show only configured models in the model picker (#20392) 2024-11-08 10:08:59 -03:00
assistant_settings.rs assistant: Rename "new context" to "new chat" (#20043) 2024-11-06 07:24:04 -03:00
context.rs Fix regression in producing sections when converting SlashCommandOutput to event stream (#20404) 2024-11-08 09:29:14 +01:00
context_store.rs Scope slash commands, context servers, and tools to individual Assistant Panel instances (#20372) 2024-11-07 18:23:25 -05:00
inline_assistant.rs assistant: Add model names in alternative inline tooltips (#20350) 2024-11-07 10:56:19 -03:00
model_selector.rs assistant: Show only configured models in the model picker (#20392) 2024-11-08 10:08:59 -03:00
patch.rs Fix more failure cases of assistant edits (#19653) 2024-10-25 14:30:34 -07:00
prompt_library.rs Fix some issues with branch buffers (#18945) 2024-10-09 16:55:25 -07:00
prompts.rs Don't conservatively include Suggest Edits token in token count (#20180) 2024-11-04 15:40:10 -05:00
slash_command.rs Make slash command output streamable (#19632) 2024-11-06 16:24:43 -08:00
slash_command_picker.rs Scope slash commands, context servers, and tools to individual Assistant Panel instances (#20372) 2024-11-07 18:23:25 -05:00
slash_command_settings.rs Add settings to remote servers, use XDG paths on remote, and enable node LSPs (#19176) 2024-10-15 23:32:44 -07:00
slash_command_working_set.rs Scope slash commands, context servers, and tools to individual Assistant Panel instances (#20372) 2024-11-07 18:23:25 -05:00
streaming_diff.rs Reduce memory footprint for inline transformations (#20296) 2024-11-06 15:07:16 +01:00
terminal_inline_assistant.rs assistant: Add health telemetry (#19928) 2024-10-31 16:21:26 -07:00
tool_working_set.rs Scope slash commands, context servers, and tools to individual Assistant Panel instances (#20372) 2024-11-07 18:23:25 -05:00
tools.rs context_servers: Support tools (#19548) 2024-10-28 10:37:58 -04:00