Skip to content

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

fix: Screenpipe Cloud chat image forwarding (#3468)

Ansh Grover64cacd373204
diff --git a/crates/screenpipe-core/src/agents/pi.rs b/crates/screenpipe-core/src/agents/pi.rs
index af194fe39..6e06245b3 100644
--- a/crates/screenpipe-core/src/agents/pi.rs
+++ b/crates/screenpipe-core/src/agents/pi.rs
@@ -72,25 +72,11 @@ async fn fetch_models_from_gateway(
.unwrap_or("standard");
let reasoning = intelligence == "highest" || intelligence == "high";
- // Determine input modalities from best_for/tags
- let best_for = m.get("best_for").and_then(|v| v.as_array());
- let has_vision = best_for
- .map(|arr| {
- arr.iter()
- .any(|v| v.as_str().is_some_and(|s| s.contains("vision")))
- })
- .unwrap_or(false);
- let input = if has_vision {
- json!(["text", "image"])
- } else {
- json!(["text"])
- };
-
json!({
"id": id,
"name": name,
"reasoning": reasoning,
- "input": input,
+ "input": ["text", "image"],
"cost": {"input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0},
"contextWindow": ctx,
"maxTokens": 32000,