mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[PR #15903] [MERGED] feat: Add configurable API URL (for self-hosting) and additional_config parameter for Datalab Marker API #95017
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/15903
Author: @Hisma
Created: 7/21/2025
Status: ✅ Merged
Merged: 8/4/2025
Merged by: @tjbck
Base:
dev← Head:marker-api-update📝 Commits (6)
5fbfe2bMerge pull request #15879 from open-webui/devf31cc07feat: update marker apia99e20cadd format_lines21337a2ci fix216c991move api key below url9590897Merge branch 'open-webui:main' into marker-api-update📊 Changes
6 files changed (+214 additions, -97 deletions)
View changed files
📝
backend/open_webui/config.py(+16 -4)📝
backend/open_webui/main.py(+6 -2)📝
backend/open_webui/retrieval/loaders/datalab_marker.py(+92 -67)📝
backend/open_webui/retrieval/loaders/main.py(+7 -1)📝
backend/open_webui/routers/retrieval.py(+25 -8)📝
src/lib/components/admin/Settings/Documents.svelte(+68 -15)📄 Description
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Reference issue - https://github.com/open-webui/open-webui/issues/13137#issuecomment-3014486758
This PR enhances the Datalab Marker API integration by adding configurable self-hosted Marker API URL support and replacing the deprecated language selection feature with the new
additional_configparameter. Users can now specify custom Datalab Marker API endpoints and have control over the latest marker API processing options.Added
https://www.datalab.to/api/v1/markerwhen left emptydisable_links,keep_pageheader_in_output,keep_pagefooter_in_outputfilter_blank_pages,drop_repeated_text,layout_coverage_thresholdmerge_threshold,height_tolerance,gap_threshold,image_thresholdmin_line_length,level_count,default_levelChanged
Deprecated
Removed
Security
Key Enhancements:
Testing Environment:
docker build --build-arg USE_CUDA=true --build-arg USE_CUDA_VER=cu121 --build-arg USE_OLLAMA=false -t openwebui-custom:dev .docker.io/hisma/openwebui:devBackend Logs Confirm Success:
Screenshots
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.