better hint missing api endpoint and key

This commit is contained in:
2023-03-14 23:24:37 +08:00
parent 711b9d48a1
commit 333a1c34b2

View File

@@ -247,9 +247,19 @@ export function App() {
</div>
</p>
<div className="grow overflow-scroll">
{!chatStore.apiKey && (
<p className="opacity-60 p-6 rounded bg-white my-3 text-left">
API Endpoint
</p>
)}
{!chatStore.apiEndpoint && (
<p className="opacity-60 p-6 rounded bg-white my-3 text-left">
API Endpoint
</p>
)}
{chatStore.history.length === 0 && (
<p className="opacity-60 p-6 rounded bg-white my-3 text-left">
(OPENAI) API KEY
QwQ
</p>
)}
{chatStore.history.map((chat, i) => {