render api templates if exitst

This commit is contained in:
2023-10-24 22:39:45 +08:00
parent 2bd36d4b34
commit 83833187f0

View File

@@ -316,7 +316,8 @@ export default function ChatBOX(props: {
API Endpoint API Endpoint
</p> </p>
)} )}
{(chatStore.history.filter((msg) => !msg.example).length == 0 || {templateAPIs.length > 0 &&
(chatStore.history.filter((msg) => !msg.example).length == 0 ||
!chatStore.apiEndpoint || !chatStore.apiEndpoint ||
!chatStore.apiKey) && ( !chatStore.apiKey) && (
<p className="break-all opacity-80 p-3 rounded bg-white my-3 text-left dark:text-black"> <p className="break-all opacity-80 p-3 rounded bg-white my-3 text-left dark:text-black">