Skip to content

Commit

Permalink
Merge pull request #84 from Wilaz/master
Browse files Browse the repository at this point in the history
fix: 🐛 Removed window.ai in the tauri build
  • Loading branch information
slowsynapse authored Apr 7, 2024
2 parents 297d3bc + ad8d1f8 commit 9afb80e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/settings/ChatbotBackendPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { useEffect, useState } from 'react';
import { getWindowAI } from "window.ai";
import { BasicPage, Link, FormRow, getLinkFromPage } from './common';
import { updateConfig } from "@/utils/config";
import { isTauri } from "@/utils/isTauri";

const chatbotBackends = [
{key: "echo", label: "Echo"},
{key: "chatgpt", label: "ChatGPT"},
{key: "llamacpp", label: "LLama.cpp"},
{key: "windowai", label: "Window.ai"},
...isTauri() ? [] : [{key: "windowai", label: "Window.ai"}], // Hides Window.ai when using the desktop app
{key: "ollama", label: "Ollama"},
{key: "koboldai", label: "KoboldAI"},
];
Expand Down

0 comments on commit 9afb80e

Please sign in to comment.