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

Block unsupported models (GPT) for screenpipe-cloud AI preset

Louis Beaumont927e8c7e8df3
diff --git a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
index 202922896..fea47f43b 100644
--- a/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
+++ b/screenpipe-app-tauri/components/rewind/timeline/ai-panel.tsx
@@ -227,6 +227,20 @@ export function AIPanel({
return;
}
+ // Validate model for screenpipe-cloud (only Claude and Gemini are supported)
+ if (activePreset?.provider === "screenpipe-cloud") {
+ const model = activePreset.model?.toLowerCase() || "";
+ const isSupported = model.includes("claude") || model.includes("gemini");
+ if (!isSupported) {
+ toast({
+ title: "unsupported model",
+ description: `"${activePreset.model}" is not supported on screenpipe cloud. please edit your preset and select a claude or gemini model.`,
+ variant: "destructive",
+ });
+ return;
+ }
+ }
+
// Create new abort controller for this request
abortControllerRef.current = new AbortController();