Pro mode selector: saver mode (#153)

This commit is contained in:
Will Chen
2025-05-13 12:24:32 -07:00
committed by GitHub
parent 14d9a12464
commit 3763423dc7
5 changed files with 101 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ import {
} from "lucide-react";
import type React from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import { ModelPicker } from "@/components/ModelPicker";
import { useSettings } from "@/hooks/useSettings";
import { IpcClient } from "@/ipc/ipc_client";
import {
@@ -59,6 +59,7 @@ import { useAttachments } from "@/hooks/useAttachments";
import { AttachmentsList } from "./AttachmentsList";
import { DragDropOverlay } from "./DragDropOverlay";
import { showError, showUncommittedFilesWarning } from "@/lib/toast";
import { ChatInputControls } from "../ChatInputControls";
const showTokenBarAtom = atom(false);
export function ChatInput({ chatId }: { chatId?: number }) {
@@ -340,9 +341,7 @@ export function ChatInput({ chatId }: { chatId?: number }) {
)}
</div>
<div className="pl-2 pr-1 flex items-center justify-between">
<div className="pb-2">
<ModelPicker />
</div>
<ChatInputControls />
<button
onClick={() => setShowTokenBar(!showTokenBar)}
className="flex items-center px-2 py-1 text-xs text-muted-foreground hover:bg-muted rounded"