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: override built-in anthropic provider with screenpipe proxy URL
Louis Beaumont0395a52869c8
diff --git a/screenpipe-app-tauri/src-tauri/src/pi.rs b/screenpipe-app-tauri/src-tauri/src/pi.rsindex d1c6085ff..0f15e022a 100644--- a/screenpipe-app-tauri/src-tauri/src/pi.rs+++ b/screenpipe-app-tauri/src-tauri/src/pi.rs@@ -7,7 +7,7 @@ use tracing::{debug, error, info, warn};const PI_PACKAGE: &str = "@mariozechner/pi-coding-agent";const SCREENPIPE_API_URL: &str = "https://api.screenpi.pe/anthropic/v1";-const DEFAULT_MODEL: &str = "claude-opus-4-5@20251101";+const DEFAULT_MODEL: &str = "claude-opus-4-5-20251101";/// Ensure pi CLI is installed/updated via bunpub async fn ensure_installed() -> Result<(), String> {@@ -60,19 +60,11 @@ pub fn ensure_config() -> Result<(), String> {let models_path = config_dir.join("models.json");+ // Override built-in anthropic provider to use screenpipe API proxylet config = serde_json::json!({"providers": {- "screenpipe": {- "api": "anthropic",- "baseURL": SCREENPIPE_API_URL,- "models": {- "claude-opus-4-5@20251101": {- "name": "Claude Opus 4.5"- },- "claude-haiku-4-5@20251001": {- "name": "Claude Haiku 4.5"- }- }+ "anthropic": {+ "baseUrl": SCREENPIPE_API_URL}}});@@ -120,7 +112,7 @@ pub async fn run(prompt: &str, user_token: Option<&str>) -> Result<String, Strinlet mut cmd = tokio::process::Command::new(&pi_cmd);cmd.arg("-p").arg(prompt);- cmd.arg("--provider").arg("screenpipe");+ cmd.arg("--provider").arg("anthropic");cmd.arg("--model").arg(DEFAULT_MODEL);if let Some(token) = user_token {