diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 520808439..ef02e4dec 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -12,7 +12,8 @@ jobs: runs-on: ubuntu-latest if: | github.repository == 'danny-avila/LibreChat' && - (github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success') + (github.event_name == 'workflow_dispatch' || + (github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'dev')) steps: - name: Checkout repository uses: actions/checkout@v4 @@ -32,9 +33,13 @@ jobs: sudo -i -u danny bash << EEOF cd ~/LibreChat && \ git fetch origin main && \ + npm run stop:deployed && \ + docker images -a | grep "librechat" | awk '{print \$3}' | xargs docker rmi && \ npm run update:deployed && \ + git checkout dev && \ + git pull origin dev && \ git checkout do-deploy && \ - git rebase main && \ + git rebase dev && \ npm run start:deployed && \ echo "Update completed. Application should be running now." EEOF diff --git a/api/server/services/Files/MistralOCR/crud.js b/api/server/services/Files/MistralOCR/crud.js index cc01d803b..02fdb8546 100644 --- a/api/server/services/Files/MistralOCR/crud.js +++ b/api/server/services/Files/MistralOCR/crud.js @@ -92,6 +92,7 @@ async function performOCR({ `${baseURL}/ocr`, { model, + image_limit: 0, include_image_base64: false, document: { type: documentType, diff --git a/api/server/services/Files/MistralOCR/crud.spec.js b/api/server/services/Files/MistralOCR/crud.spec.js index 8cc63cade..72d6be7cb 100644 --- a/api/server/services/Files/MistralOCR/crud.spec.js +++ b/api/server/services/Files/MistralOCR/crud.spec.js @@ -186,6 +186,7 @@ describe('MistralOCR Service', () => { { model: 'mistral-ocr-latest', include_image_base64: false, + image_limit: 0, document: { type: 'document_url', document_url: 'https://document-url.com', @@ -221,6 +222,7 @@ describe('MistralOCR Service', () => { { model: 'mistral-ocr-latest', include_image_base64: false, + image_limit: 0, document: { type: 'image_url', image_url: 'https://image-url.com/image.png', diff --git a/client/src/components/Audio/TTS.tsx b/client/src/components/Audio/TTS.tsx index d5fcb9112..9343b483d 100644 --- a/client/src/components/Audio/TTS.tsx +++ b/client/src/components/Audio/TTS.tsx @@ -25,16 +25,16 @@ export function BrowserTTS({ content, }); - const renderIcon = (size: string) => { + const renderIcon = () => { if (isLoading === true) { - return ; + return ; } if (isSpeaking === true) { - return ; + return ; } - return ; + return ; }; useEffect(() => { @@ -68,13 +68,13 @@ export function BrowserTTS({ renderButton({ onClick: handleClick, title: title, - icon: renderIcon('19'), + icon: renderIcon(), isActive: isSpeaking, className, }) ) : ( )}