show api templates in development mode

This commit is contained in:
2023-10-25 14:05:57 +08:00
parent e19431b833
commit fc72a5b7c1

View File

@@ -318,7 +318,8 @@ export default function ChatBOX(props: {
</p> </p>
)} )}
{templateAPIs.length > 0 && {templateAPIs.length > 0 &&
(chatStore.history.filter((msg) => !msg.example).length == 0 || (chatStore.develop_mode ||
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">