user can send message without defining an api key

This commit is contained in:
2023-12-22 17:11:11 +08:00
parent 59d31e356b
commit 54f2843677
2 changed files with 8 additions and 5 deletions

View File

@@ -842,7 +842,7 @@ export default function ChatBOX(props: {
></textarea>
<button
className="disabled:line-through disabled:bg-slate-500 rounded m-1 p-1 border-2 bg-cyan-400 hover:bg-cyan-600"
disabled={showGenerating || !chatStore.apiKey}
disabled={showGenerating}
onClick={() => {
send(inputMsg, true);
}}