From fc72a5b7c1366fb057975fbb92265425370dca57 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Wed, 25 Oct 2023 14:05:57 +0800 Subject: [PATCH] show api templates in development mode --- src/chatbox.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index b855cd6..f1f5ac5 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -318,7 +318,8 @@ export default function ChatBOX(props: {

)} {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.apiKey) && (