Merge pull request #16826 from selenecodes/feat/azure-document-intelligence-azure-entra-auth
feat: Authenticate Azure Document Intelligence using DefaultAzureCredential
This commit is contained in:
@@ -185,10 +185,9 @@
|
||||
|
||||
if (
|
||||
RAGConfig.CONTENT_EXTRACTION_ENGINE === 'document_intelligence' &&
|
||||
(RAGConfig.DOCUMENT_INTELLIGENCE_ENDPOINT === '' ||
|
||||
RAGConfig.DOCUMENT_INTELLIGENCE_KEY === '')
|
||||
RAGConfig.DOCUMENT_INTELLIGENCE_ENDPOINT === ''
|
||||
) {
|
||||
toast.error($i18n.t('Document Intelligence endpoint and key required.'));
|
||||
toast.error($i18n.t('Document Intelligence endpoint required.'));
|
||||
return;
|
||||
}
|
||||
if (
|
||||
@@ -644,6 +643,7 @@
|
||||
<SensitiveInput
|
||||
placeholder={$i18n.t('Enter Document Intelligence Key')}
|
||||
bind:value={RAGConfig.DOCUMENT_INTELLIGENCE_KEY}
|
||||
required={false}
|
||||
/>
|
||||
</div>
|
||||
{:else if RAGConfig.CONTENT_EXTRACTION_ENGINE === 'mistral_ocr'}
|
||||
|
||||
Reference in New Issue
Block a user