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: ollama
Louis Beaumont808143589a42
diff --git a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsxindex 20a22a538..db2a06233 100644--- a/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx+++ b/examples/apps/screenpipe-app-tauri/components/chat-list-openai-v2.tsx@@ -146,6 +146,23 @@ export function ChatList({- Very important: your output will be given to another LLM so make sure not to return too much data (typically each row returns lot of data)- Use "all" for querying the same keyword over vision and audio- When the user ask "show me what i was doing at 10.11 am" do not use "q" intent is not looking for specific content but for a time range+++ Example of your answer:+ {+ queries: [+ { content_type: "audio", start_time: "2024-03-01T00:00:00Z", end_time: "2024-03-01T23:59:59Z" },+ { content_type: "ocr", app_name: "arc", start_time: "2024-03-01T00:00:00Z", end_time: "2024-03-01T23:59:59Z", q: "john" },+ ]+ }++ Or++ {+ queries: [+ { content_type: "all", start_time: "2024-03-01T00:00:00Z", end_time: "2024-03-01T01:00:00Z" },+ ]+ }`,},// add prev messages but convert all tool role messages to assistant bcs not supported in generateText@@ -197,6 +214,10 @@ export function ChatList({]);}+ console.log("text", text);++ setIsLoading(false);+const { textStream } = await streamText({model: provider(model),messages: [@@ -222,6 +243,8 @@ export function ChatList({- You can analyze/view/show/access videos to the user by putting .mp4 files in a code block (we'll render it) like this: \`/users/video.mp4\`- You can analyze/view/show/access videos BY JUST FUCKING PUTTING THE ABSOLUTE FILE PATH IN A CODE BLOCK- Always use the absolute file path to access videos+ - When the user ask "show me what i was doing at 10.11 am" make sure to embed the path to the video in the response in a code block+ - MAKE SURE TO FUCKING ANSWER THE USER QUESTION`,},// @ts-ignorediff --git a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsxindex 23332c17c..b80731b97 100644--- a/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx+++ b/examples/apps/screenpipe-app-tauri/components/function-call-message.tsx@@ -107,12 +107,14 @@ export function FunctionCallMessage({ message }: FunctionCallMessageProps) {your application.</DialogDescription></DialogHeader>- <CodeBlock- language="bash"- value={generateCurlCommand(- toolCall.args.queries[0]- )}- />+ {toolCall.args.queries && (+ <CodeBlock+ language="bash"+ value={generateCurlCommand(+ toolCall.args.queries[0]+ )}+ />+ )}</DialogContent></Dialog></AccordionTrigger>@@ -160,12 +162,14 @@ export function FunctionCallMessage({ message }: FunctionCallMessageProps) {your application.</DialogDescription></DialogHeader>- <CodeBlock- language="bash"- value={generateCurlCommand(- toolResult.result[0].args.queries[0]- )}- />+ {toolResult.result?.[0]?.args?.queries && (+ <CodeBlock+ language="bash"+ value={generateCurlCommand(+ toolResult.result[0].args.queries[0]+ )}+ />+ )}</DialogContent></Dialog></AccordionTrigger>diff --git a/examples/apps/screenpipe-app-tauri/components/settings.tsx b/examples/apps/screenpipe-app-tauri/components/settings.tsxindex 6c0dc49d1..57429e784 100644--- a/examples/apps/screenpipe-app-tauri/components/settings.tsx+++ b/examples/apps/screenpipe-app-tauri/components/settings.tsx@@ -169,38 +169,41 @@ export function Settings({ className }: { className?: string }) {<CardContent className="space-y-6"><div className="flex flex-col items-center space-y-2"><TooltipProvider>- <Tooltip>- <TooltipTrigger asChild>- <div className="flex items-center space-x-4">- <Switch- id="use-ollama"- checked={localSettings.useOllama}- onCheckedChange={handleOllamaToggle}- />- <Label- htmlFor="use-ollama"- className="flex items-center space-x-2"- >- Use Ollama- <Badge variant="outline" className="ml-2">- Beta- </Badge>- </Label>- </div>- </TooltipTrigger>- <TooltipContent>- <p>- Toggle to use Ollama instead of OpenAI API. Expect- errors as this is experimental.- <br />- Function calling was just announced and doesn't- work well, usually requiring more prompt engineering- compared to OpenAI.- </p>- </TooltipContent>- </Tooltip>+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <div className="flex items-center space-x-4">+ <Switch+ id="use-ollama"+ checked={localSettings.useOllama}+ onCheckedChange={handleOllamaToggle}+ />+ <Label+ htmlFor="use-ollama"+ className="flex items-center space-x-2"+ >+ Use Ollama+ <Badge variant="outline" className="ml-2">+ Disabled+ </Badge>+ </Label>+ </div>+ </TooltipTrigger>+ <TooltipContent>+ <p>Ollama support is currently disabled.</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ <a+ href="https://github.com/sgomez/ollama-ai-provider/issues/22"+ target="_blank"+ rel="noopener noreferrer"+ className="text-sm text-primary hover:underline"+ >+ want to make this work?+ </a></TooltipProvider>- {localSettings.useOllama && (+ {/* {localSettings.useOllama && (<div className="w-full max-w-md mt-2"><div className="flex-col gap-2 mb-4"><div className="flex items-center gap-4 mb-4">@@ -218,7 +221,6 @@ export function Settings({ className }: { className?: string }) {placeholder="Enter Ollama URL (e.g., http://localhost:11434)"/></div>- {/* add small text to indicate only port 11434 is supported for security reasons */}<p className="mt-1 text-sm text-muted-foreground text-center">For now only port 11434 and 9000 are supported forsecurity reasons.@@ -250,7 +252,7 @@ export function Settings({ className }: { className?: string }) {? "You need to [install Ollama](https://ollama.com/) and run `set OLLAMA_ORIGINS=* && ollama run llama3.1` first. Currently only supports Llama 3.1": "You need to [install Ollama](https://ollama.com/) and run `ollama run llama3.1` first. Currently only supports Llama 3.1"}</MemoizedReactMarkdown>- </div>+ </div> */}</div><Separator />