Fix isAnyProvider and don't make it a hard block (#93)

This commit is contained in:
Will Chen
2025-05-06 12:13:03 -07:00
committed by GitHub
parent 7c0ce1d45b
commit 390496f8f8
4 changed files with 17 additions and 13 deletions

View File

@@ -349,10 +349,7 @@ export function ChatInput({ chatId }: { chatId?: number }) {
) : (
<button
onClick={handleSubmit}
disabled={
(!inputValue.trim() && attachments.length === 0) ||
!isAnyProviderSetup()
}
disabled={!inputValue.trim() && attachments.length === 0}
className="px-2 py-2 mt-1 mr-2 hover:bg-(--background-darkest) text-(--sidebar-accent-fg) rounded-lg disabled:opacity-50"
>
<SendIcon size={20} />