Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion apps/desktop/src/components/main/body/ai.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
AudioLinesIcon,
BookText,
Brain,
MessageSquare,
Plus,
Search,
Expand All @@ -22,6 +23,7 @@ import * as main from "../../../store/tinybase/store/main";
import { type Tab, useTabs } from "../../../store/zustand/tabs";
import { LLM } from "../../settings/ai/llm";
import { STT } from "../../settings/ai/stt";
import { SettingsMemory } from "../../settings/memory";
import { StandardTabWrapper } from "./index";
import { useWebResources } from "./resource-list";
import { type TabItem, TabItemBase } from "./shared";
Expand All @@ -32,7 +34,8 @@ type AITabKey =
| "intelligence"
| "templates"
| "shortcuts"
| "prompts";
| "prompts"
| "memory";

export const TabItemAI: TabItem<Extract<Tab, { type: "ai" }>> = ({
tab,
Expand All @@ -50,6 +53,7 @@ export const TabItemAI: TabItem<Extract<Tab, { type: "ai" }>> = ({
templates: "Templates",
shortcuts: "Shortcuts",
prompts: "Prompts",
memory: "Memory",
};
const suffix =
labelMap[(tab.state.tab as AITabKey) ?? "transcription"] ?? "STT";
Expand Down Expand Up @@ -113,6 +117,11 @@ function AIView({ tab }: { tab: Extract<Tab, { type: "ai" }> }) {
label: "Intelligence",
icon: <SparklesIcon size={14} />,
},
{
key: "memory",
label: "Memory",
icon: <Brain size={14} />,
},
{
key: "templates",
label: "Templates",
Expand Down Expand Up @@ -163,6 +172,7 @@ function AIView({ tab }: { tab: Extract<Tab, { type: "ai" }> }) {
{activeTab === "templates" && <TemplatesContent />}
{activeTab === "shortcuts" && <ShortcutsContent />}
{activeTab === "prompts" && <PromptsContent />}
{activeTab === "memory" && <SettingsMemory />}
</div>
{!atStart && <ScrollFadeOverlay position="top" />}
{!atEnd && <ScrollFadeOverlay position="bottom" />}
Expand Down
Loading
Loading