diff --git a/app/api/auth.ts b/app/api/auth.ts index c8fa6787d9a..95965ceec2d 100644 --- a/app/api/auth.ts +++ b/app/api/auth.ts @@ -38,7 +38,6 @@ export function auth(req: NextRequest, modelProvider: ModelProvider) { console.log("[Auth] hashed access code:", hashedCode); console.log("[User IP] ", getIP(req)); console.log("[Time] ", new Date().toLocaleString()); - console.log("[ModelProvider] ", modelProvider); if (serverConfig.needCode && !serverConfig.codes.has(hashedCode) && !apiKey) { return { diff --git a/app/components/plugin.tsx b/app/components/plugin.tsx index 35fb2abc624..5aad2c70aaa 100644 --- a/app/components/plugin.tsx +++ b/app/components/plugin.tsx @@ -7,34 +7,26 @@ import { ErrorBoundary } from "./error"; import styles from "./mask.module.scss"; import pluginStyles from "./plugin.module.scss"; -import DownloadIcon from "../icons/download.svg"; import EditIcon from "../icons/edit.svg"; import AddIcon from "../icons/add.svg"; import CloseIcon from "../icons/close.svg"; import DeleteIcon from "../icons/delete.svg"; import EyeIcon from "../icons/eye.svg"; -import CopyIcon from "../icons/copy.svg"; import ConfirmIcon from "../icons/confirm.svg"; import ReloadIcon from "../icons/reload.svg"; import { Plugin, usePluginStore, FunctionToolService } from "../store/plugin"; import { - Input, PasswordInput, List, ListItem, Modal, - Popover, - Select, showConfirm, showToast, } from "./ui-lib"; -import { downloadAs } from "../utils"; import Locale from "../locales"; import { useNavigate } from "react-router-dom"; -import { useEffect, useState, useCallback } from "react"; -import { Path } from "../constant"; -import { nanoid } from "nanoid"; +import { useEffect, useState } from "react"; export function PluginPage() { const navigate = useNavigate();