YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix(ci): format pi model filtering
Louis Beaumontf230d4bf98f0
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rsindex eb4d8f8db..a8c49d053 100644--- a/crates/screenpipe-core/src/agents/pi.rs+++ b/crates/screenpipe-core/src/agents/pi.rs@@ -126,8 +126,7 @@ async fn fetch_models_from_gateway(/// selectable. Omit locked entries here so a pipe never appears to select a/// model only for the gateway to silently rewrite it to `auto`.fn gateway_models_to_pi_models(data: &[serde_json::Value]) -> Vec<serde_json::Value> {- data- .iter()+ data.iter().filter(|m| !m.get("locked").and_then(|v| v.as_bool()).unwrap_or(false)).map(|m| {let id = m.get("id").and_then(|v| v.as_str()).unwrap_or("");