From cbb46c10bcdc9cc231db5958af09427edeffa9a1 Mon Sep 17 00:00:00 2001 From: Yannic Kilcher Date: Tue, 8 Aug 2023 10:58:13 +0200 Subject: [PATCH] Added plugin repositories to add-plugin menu (#3638) For now I've added getit.ai as a repository, but we can easily add others, they're just a link for now --- website/public/locales/en/chat.json | 1 + website/src/components/Chat/PluginsChooser.tsx | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/website/public/locales/en/chat.json b/website/public/locales/en/chat.json index 0497cb1df6..3516b2dd87 100644 --- a/website/public/locales/en/chat.json +++ b/website/public/locales/en/chat.json @@ -33,6 +33,7 @@ "typical_p": "Typical p: Typical sampling is an information-theoretic technique that, in addition to the probability, also considers the sequence entropy (i.e., the information content according to the probability). This means that typical sampling \"overweights\" some of the tokens with lower probability because they are deemed \"interesting,\" and underweights high probability tokens because they are deemed \"boring.\"" }, "plugin_url_placeholder": "Enter plugin URL", + "plugin_repositories": "Plugin Repositories", "plugins": "Plugins", "preset": "Preset", "preset_custom": "Custom", diff --git a/website/src/components/Chat/PluginsChooser.tsx b/website/src/components/Chat/PluginsChooser.tsx index 467c045613..542d0d213f 100644 --- a/website/src/components/Chat/PluginsChooser.tsx +++ b/website/src/components/Chat/PluginsChooser.tsx @@ -2,6 +2,7 @@ import { Avatar, Box, Button, + Flex, IconButton, Input, Menu, @@ -32,6 +33,7 @@ import { post } from "src/lib/api"; import { OasstError } from "src/lib/oasst_api_client"; import { API_ROUTES } from "src/lib/routes"; import { ChatConfigFormData, PluginEntry } from "src/types/Chat"; +import Link from "next/link"; import { JsonCard } from "../JsonCard"; @@ -234,6 +236,16 @@ export const PluginsChooser = ({ plugins, setPlugins }: PluginsChooserProps) => placeholder={t("plugin_url_placeholder")} /> {selectedForEditPluginIndex !== null && {plugins[selectedForEditPluginIndex]}} + + + {t("plugin_repositories")} + + + + +