diff --git a/src/listAPIs.tsx b/src/listAPIs.tsx index 152aadd..14fb6f2 100644 --- a/src/listAPIs.tsx +++ b/src/listAPIs.tsx @@ -1,14 +1,16 @@ import { ChatStore, TemplateAPI } from "@/types/chatstore"; import { Tr } from "@/translate"; -import { Card, CardHeader, CardTitle, CardFooter } from "@/components/ui/card"; import { - Carousel, - CarouselContent, - CarouselItem, - CarouselNext, - CarouselPrevious, -} from "@/components/ui/carousel"; + NavigationMenu, + NavigationMenuContent, + NavigationMenuIndicator, + NavigationMenuItem, + NavigationMenuLink, + NavigationMenuList, + NavigationMenuTrigger, + NavigationMenuViewport, +} from "@/components/ui/navigation-menu"; import { Button } from "./components/ui/button"; import { cn } from "@/lib/utils"; @@ -31,79 +33,116 @@ export function ListAPIs({ keyField, }: Props) { return ( -
+ {label === "API" ? t.endpoint : t.key} +
+ + ++ {t.toolsString} +
+ + +
- {Tr("No chat history here")}
-
⚙{Tr("Model")}: {chatStore.model}
-
⬆{Tr("Click above to change the settings of this chat")}
-
↖{Tr("Click the conor to create a new chat")}
-
⚠
- {Tr(
- "All chat history and settings are stored in the local browser"
)}
-
-
- {generatingMessage || Tr("Generating...")} - ... -
- )} -- {chatStore.history.length > 0 && ( - - )} - {chatStore.develop_mode && chatStore.history.length > 0 && ( - - )} -
-
- {chatStore.postBeginIndex !== 0 && (
- <>
-
- {Tr("Info: chat history is too long, forget messages")}:{" "}
- {chatStore.postBeginIndex}
- >
- )}
-
- -
- )} - - - {images.length > 0 && ( -