better hint missing api endpoint and key
This commit is contained in:
12
src/app.tsx
12
src/app.tsx
@@ -247,9 +247,19 @@ export function App() {
|
|||||||
</div>
|
</div>
|
||||||
</p>
|
</p>
|
||||||
<div className="grow overflow-scroll">
|
<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 && (
|
{chatStore.history.length === 0 && (
|
||||||
<p className="opacity-60 p-6 rounded bg-white my-3 text-left">
|
<p className="opacity-60 p-6 rounded bg-white my-3 text-left">
|
||||||
喵喵,请先在上方设置 (OPENAI) API KEY
|
这里什么都没有哦 QwQ
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{chatStore.history.map((chat, i) => {
|
{chatStore.history.map((chat, i) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user