allow to add image when API key is not set

This commit is contained in:
ecwu
2024-12-25 16:28:10 +08:00
parent dcf8008c4d
commit 192bae7339

View File

@@ -805,7 +805,7 @@ export default function ChatBOX(props: {
size="icon"
type="button"
onClick={() => setShowAddImage(true)}
disabled={showGenerating || !chatStore.apiKey}
disabled={showGenerating}
>
<ImageIcon className="size-4" />
<span className="sr-only">Add Image</span>