mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-11 22:52:54 +00:00
refac
This commit is contained in:
parent
aaaf26fb8e
commit
ba34bee2d1
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ class TikaLoader:
|
|||
if self.extract_images == True:
|
||||
headers['X-Tika-PDFextractInlineImages'] = 'true'
|
||||
|
||||
endpoint_path = 'tika/json/text' if self.server_version == '4' else 'tika/text'
|
||||
endpoint_path = 'tika/json/md' if self.server_version == '4' else 'tika/text'
|
||||
content_key = 'tk:content' if self.server_version == '4' else 'X-TIKA:content'
|
||||
endpoint = f'{self.url.rstrip("/")}/{endpoint_path}'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue