show img button where model is vision
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user