Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion llm_client/src/clients/anthropic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,9 @@ impl AnthropicClient {
message.usage.cache_read_input_tokens
);
}
Ok(AnthropicEvent::Ping) => {
debug!("Received ping event from Anthropic API in tool completion");
}
Err(e) => {
error!("Error parsing event: {:?}", e);
// break;
Expand Down Expand Up @@ -838,6 +841,9 @@ impl LLMClient for AnthropicClient {
input_cached_tokens =
input_cached_tokens + usage.cache_read_input_tokens.unwrap_or_default();
}
Ok(AnthropicEvent::Ping) => {
debug!("Received ping event from Anthropic API");
}
Err(e) => {
println!("{:?}", e);
// break;
Expand Down Expand Up @@ -937,6 +943,9 @@ impl LLMClient for AnthropicClient {
println!("input_json_delta::{}", &partial_json);
}
},
Ok(AnthropicEvent::Ping) => {
debug!("Received ping event from Anthropic API in prompt completion");
}
Err(_) => {
break;
}
Expand All @@ -948,4 +957,4 @@ impl LLMClient for AnthropicClient {

Ok(buffered_string)
}
}
}