refactor: rename ListAPI component to APIListMenu and update related references for improved clarity

This commit is contained in:
ecwu
2025-01-05 18:29:28 +08:00
parent 75a431360b
commit c92b8f04cc
2 changed files with 49 additions and 22 deletions

View File

@@ -41,7 +41,7 @@ import { Switch } from "@/components/ui/switch";
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { AppContext } from "./App";
import ListAPI from "@/components/ListAPI";
import APIListMenu from "@/components/ListAPI";
export default function ChatBOX() {
const ctx = useContext(AppContext);
@@ -61,8 +61,6 @@ export default function ChatBOX() {
const [showGenerating, setShowGenerating] = useState(false);
const [generatingMessage, setGeneratingMessage] = useState("");
const [showRetry, setShowRetry] = useState(false);
const [showAddToolMsg, setShowAddToolMsg] = useState(false);
const [showSearch, setShowSearch] = useState(false);
let default_follow = localStorage.getItem("follow");
if (default_follow === null) {
default_follow = "true";
@@ -396,7 +394,7 @@ export default function ChatBOX() {
return (
<>
<ListAPI />
<APIListMenu />
<div className="grow flex flex-col p-2 w-full">
<ChatMessageList>
{chatStore.history.length === 0 && (