agent: Improve error and warnings display (#36425)
This PR refactors the callout component and improves how we display errors and warnings in the agent panel, along with improvements for specific cases (e.g., you have `zed.dev` as your LLM provider and is signed out). Still a work in progress, though, wrapping up some details. Release Notes: - N/A
This commit is contained in:
parent
b578031120
commit
b7edc89a87
14 changed files with 436 additions and 394 deletions
|
@ -21,7 +21,7 @@ impl Global for GlobalLanguageModelRegistry {}
|
|||
pub enum ConfigurationError {
|
||||
#[error("Configure at least one LLM provider to start using the panel.")]
|
||||
NoProvider,
|
||||
#[error("LLM Provider is not configured or does not support the configured model.")]
|
||||
#[error("LLM provider is not configured or does not support the configured model.")]
|
||||
ModelNotFound,
|
||||
#[error("{} LLM provider is not configured.", .0.name().0)]
|
||||
ProviderNotAuthenticated(Arc<dyn LanguageModelProvider>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue