Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

collab: Attach additional properties to `Language Model Used` event (#21770)

Marshall Bowers158cdc33ba37
diff --git a/crates/collab/src/llm.rs b/crates/collab/src/llm.rs
index 94329c0b6f5..22eb35305c9 100644
--- a/crates/collab/src/llm.rs
+++ b/crates/collab/src/llm.rs
@@ -744,6 +744,8 @@ impl<S> Drop for TokenCountingStream<S> {
);
let properties = json!({
+ "has_llm_subscription": claims.has_llm_subscription,
+ "max_monthly_spend_in_cents": claims.max_monthly_spend_in_cents,
"plan": match claims.plan {
Plan::Free => "free".to_string(),
Plan::ZedPro => "zed_pro".to_string(),