Merge branch 'main' into feat/image-select-merge

This commit is contained in:
Ed McConnell
2024-12-13 21:21:10 -05:00
7 changed files with 121 additions and 12 deletions

View File

@@ -92,6 +92,7 @@ export const ChatImpl = memo(
const [chatStarted, setChatStarted] = useState(initialMessages.length > 0);
const [uploadedFiles, setUploadedFiles] = useState<File[]>([]); // Move here
const [imageDataList, setImageDataList] = useState<string[]>([]); // Move here
const files = useStore(workbenchStore.files);
const { activeProviders } = useSettings();
const [model, setModel] = useState(() => {
@@ -113,6 +114,7 @@ export const ChatImpl = memo(
api: '/api/chat',
body: {
apiKeys,
files,
},
onError: (error) => {
logger.error('Request failed\n\n', error);