show img button where model is vision

This commit is contained in:
2023-11-08 20:23:28 +08:00
parent 72c3f337a7
commit 415b7a02d8

View File

@@ -617,6 +617,7 @@ export default function ChatBOX(props: {
)}
<div className="flex justify-between">
{chatStore.model.match("vision") && (
<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}
@@ -626,6 +627,7 @@ export default function ChatBOX(props: {
>
Img
</button>
)}
{showAddImage && (
<div
className="absolute z-10 bg-black bg-opacity-50 w-full h-full flex justify-center items-center left-0 top-0 overflow-scroll"