From 333a1c34b2a6382828698bb0a0772fba3f0869fd Mon Sep 17 00:00:00 2001
From: heimoshuiyu
Date: Tue, 14 Mar 2023 23:24:37 +0800
Subject: [PATCH] better hint missing api endpoint and key
---
src/app.tsx | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/app.tsx b/src/app.tsx
index 919eaea..f75d866 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -247,9 +247,19 @@ export function App() {
+ {!chatStore.apiKey && (
+
+ 喵喵,请先在上方设置 API Endpoint
+
+ )}
+ {!chatStore.apiEndpoint && (
+
+ 喵喵,请先在上方设置 API Endpoint
+
+ )}
{chatStore.history.length === 0 && (
- 喵喵,请先在上方设置 (OPENAI) API KEY
+ 这里什么都没有哦 QwQ
)}
{chatStore.history.map((chat, i) => {