From 8edc0989e2b502e9c653fc724d074c394d6c72c8 Mon Sep 17 00:00:00 2001 From: DDDDD12138 Date: Thu, 18 Jul 2024 01:51:56 +0800 Subject: [PATCH] chore: remove unused imports and correct typos --- .env.template | 4 ++-- app/config/server.ts | 2 +- app/store/chat.ts | 2 -- app/utils/hooks.ts | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.env.template b/.env.template index b2a0438d9..18986958e 100644 --- a/.env.template +++ b/.env.template @@ -10,12 +10,12 @@ PROXY_URL=http://localhost:7890 # (optional) # Default: Empty -# Googel Gemini Pro API key, set if you want to use Google Gemini Pro API. +# Google Gemini Pro API key, set if you want to use Google Gemini Pro API. GOOGLE_API_KEY= # (optional) # Default: https://generativelanguage.googleapis.com/ -# Googel Gemini Pro API url without pathname, set if you want to customize Google Gemini Pro API url. +# Google Gemini Pro API url without pathname, set if you want to customize Google Gemini Pro API url. GOOGLE_URL= # Override openai api request base url. (optional) diff --git a/app/config/server.ts b/app/config/server.ts index 23557788b..d3ff9651d 100644 --- a/app/config/server.ts +++ b/app/config/server.ts @@ -21,7 +21,7 @@ declare global { ENABLE_BALANCE_QUERY?: string; // allow user to query balance or not DISABLE_FAST_LINK?: string; // disallow parse settings from url or not CUSTOM_MODELS?: string; // to control custom models - DEFAULT_MODEL?: string; // to cnntrol default model in every new chat window + DEFAULT_MODEL?: string; // to control default model in every new chat window // azure only AZURE_URL?: string; // https://{azure-url}/openai/deployments/{deploy-name} diff --git a/app/store/chat.ts b/app/store/chat.ts index d14bd82d8..9372b8b2e 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -9,8 +9,6 @@ import { DEFAULT_MODELS, DEFAULT_SYSTEM_TEMPLATE, KnowledgeCutOffDate, - ServiceProvider, - ModelProvider, StoreKey, SUMMARIZE_MODEL, GEMINI_SUMMARIZE_MODEL, diff --git a/app/utils/hooks.ts b/app/utils/hooks.ts index f7f1385e0..b3b726927 100644 --- a/app/utils/hooks.ts +++ b/app/utils/hooks.ts @@ -1,6 +1,6 @@ import { useMemo } from "react"; import { useAccessStore, useAppConfig } from "../store"; -import { collectModels, collectModelsWithDefaultModel } from "./model"; +import { collectModelsWithDefaultModel } from "./model"; export function useAllModels() { const accessStore = useAccessStore();