Properly extract errors from the Anthropic API (#15534)
Before, we missed "successful" responses with the API errors, now they are properly shown in the assistant panel.  Release Notes: - N/A
This commit is contained in:
parent
821ce2fc7c
commit
9384f665bb
2 changed files with 15 additions and 5 deletions
|
@ -273,7 +273,7 @@ impl ContextOperation {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum ContextEvent {
|
||||
MessagesEdited,
|
||||
SummaryChanged,
|
||||
|
@ -2188,7 +2188,7 @@ impl ContextVersion {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct PendingSlashCommand {
|
||||
pub name: String,
|
||||
pub argument: Option<String>,
|
||||
|
@ -2196,7 +2196,7 @@ pub struct PendingSlashCommand {
|
|||
pub source_range: Range<language::Anchor>,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum PendingSlashCommandStatus {
|
||||
Idle,
|
||||
Running { _task: Shared<Task<()>> },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue