Skip to content

Commit

Permalink
Merge branch 'fix/unstructured-required-fields' into fixee-main
Browse files Browse the repository at this point in the history
  • Loading branch information
JJK801 committed Oct 25, 2024
2 parents d948997 + f8f198a commit 3f1359f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ export class UnstructuredLoader extends BaseDocumentLoader {

const options = optionsOrLegacyFilePath
this.apiKey = options.apiKey
this.apiUrl = options.apiUrl ?? this.apiUrl
this.strategy = options.strategy ?? this.strategy
this.apiUrl = options.apiUrl || this.apiUrl
this.strategy = options.strategy || this.strategy
this.encoding = options.encoding
this.ocrLanguages = options.ocrLanguages ?? this.ocrLanguages
this.ocrLanguages = options.ocrLanguages || this.ocrLanguages
this.coordinates = options.coordinates
this.pdfInferTableStructure = options.pdfInferTableStructure
this.xmlKeepTags = options.xmlKeepTags
Expand Down Expand Up @@ -128,7 +128,7 @@ export class UnstructuredLoader extends BaseDocumentLoader {
}

const headers = {
'UNSTRUCTURED-API-KEY': this.apiKey ?? ''
'UNSTRUCTURED-API-KEY': this.apiKey || ''
}

const response = await fetch(this.apiUrl, {
Expand Down

0 comments on commit 3f1359f

Please sign in to comment.