6 Commits

Author SHA1 Message Date
github-actions[bot]
3bd7828570 chore: bump version to 1.2.1 [skip ci] 2025-08-13 07:37:55 +00:00
Michele Dolfi
8b470cba8e fix: handling of vlm model options and update deps (#314)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
2025-08-13 09:32:21 +02:00
Tiago Santana
8048f4589a fix: add missing response type in sync endpoints (#309)
Signed-off-by: Tiago Santana <54704492+SantanaTiago@users.noreply.github.com>
2025-08-08 12:32:19 +02:00
Thomas Vitale
b3058e91e0 docs: Update readme to use v1 (#306)
Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
2025-08-08 09:02:29 +02:00
Thomas Vitale
63da9eedeb docs: Update deployment examples to use v1 API (#308)
Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
2025-08-08 08:47:59 +02:00
Thomas Vitale
b15dc2529f docs: Fix typo in v1 migration instructions (#307)
Signed-off-by: Thomas Vitale <ThomasVitale@users.noreply.github.com>
2025-08-08 08:44:09 +02:00
9 changed files with 1101 additions and 612 deletions

View File

@@ -1,3 +1,16 @@
## [v1.2.1](https://github.com/docling-project/docling-serve/releases/tag/v1.2.1) - 2025-08-13
### Fix
* Handling of vlm model options and update deps ([#314](https://github.com/docling-project/docling-serve/issues/314)) ([`8b470cb`](https://github.com/docling-project/docling-serve/commit/8b470cba8ef500c271eb84c8368c8a1a1a5a6d6a))
* Add missing response type in sync endpoints ([#309](https://github.com/docling-project/docling-serve/issues/309)) ([`8048f45`](https://github.com/docling-project/docling-serve/commit/8048f4589a91de2b2b391ab33a326efd1b29f25b))
### Documentation
* Update readme to use v1 ([#306](https://github.com/docling-project/docling-serve/issues/306)) ([`b3058e9`](https://github.com/docling-project/docling-serve/commit/b3058e91e0c56e27110eb50f22cbdd89640bf398))
* Update deployment examples to use v1 API ([#308](https://github.com/docling-project/docling-serve/issues/308)) ([`63da9ee`](https://github.com/docling-project/docling-serve/commit/63da9eedebae3ad31d04e65635e573194e413793))
* Fix typo in v1 migration instructions ([#307](https://github.com/docling-project/docling-serve/issues/307)) ([`b15dc25`](https://github.com/docling-project/docling-serve/commit/b15dc2529f78d68a475e5221c37408c3f77d8588))
## [v1.2.0](https://github.com/docling-project/docling-serve/releases/tag/v1.2.0) - 2025-08-07 ## [v1.2.0](https://github.com/docling-project/docling-serve/releases/tag/v1.2.0) - 2025-08-07
### Feature ### Feature

View File

@@ -36,7 +36,8 @@ The server is available at
- API <http://127.0.0.1:5001> - API <http://127.0.0.1:5001>
- API documentation <http://127.0.0.1:5001/docs> - API documentation <http://127.0.0.1:5001/docs>
- UI playground <http://127.0.0.1:5001/ui> - UI playground <http://127.0.0.1:5001/ui>
![swagger.png](img/swagger.png)
![API documentation](img/fastapi-ui.png)
Try it out with a simple conversion: Try it out with a simple conversion:
@@ -46,7 +47,7 @@ curl -X 'POST' \
-H 'accept: application/json' \ -H 'accept: application/json' \
-H 'Content-Type: application/json' \ -H 'Content-Type: application/json' \
-d '{ -d '{
"http_sources": [{"url": "https://arxiv.org/pdf/2501.17887"}] "sources": [{"kind": "http", "url": "https://arxiv.org/pdf/2501.17887"}]
}' }'
``` ```

View File

@@ -390,7 +390,7 @@ def create_app(): # noqa: C901
# Convert a document from URL(s) # Convert a document from URL(s)
@app.post( @app.post(
"/v1/convert/source", "/v1/convert/source",
response_model=ConvertDocumentResponse, response_model=ConvertDocumentResponse | PresignedUrlConvertDocumentResponse,
responses={ responses={
200: { 200: {
"content": {"application/zip": {}}, "content": {"application/zip": {}},
@@ -426,7 +426,7 @@ def create_app(): # noqa: C901
# Convert a document from file(s) # Convert a document from file(s)
@app.post( @app.post(
"/v1/convert/file", "/v1/convert/file",
response_model=ConvertDocumentResponse, response_model=ConvertDocumentResponse | PresignedUrlConvertDocumentResponse,
responses={ responses={
200: { 200: {
"content": {"application/zip": {}}, "content": {"application/zip": {}},

View File

@@ -35,7 +35,7 @@ curl -X 'POST' \
-H "accept: application/json" \ -H "accept: application/json" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"http_sources": [{"url": "https://arxiv.org/pdf/2501.17887"}] "sources": [{"kind": "http", "url": "https://arxiv.org/pdf/2501.17887"}]
}' }'
``` ```
@@ -148,7 +148,7 @@ curl -X 'POST' \
-H "accept: application/json" \ -H "accept: application/json" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"http_sources": [{"url": "https://arxiv.org/pdf/2501.17887"}] "sources": [{"kind": "http", "url": "https://arxiv.org/pdf/2501.17887"}]
}' }'
``` ```
@@ -221,7 +221,7 @@ curl -X 'POST' \
-H "accept: application/json" \ -H "accept: application/json" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"http_sources": [{"url": "https://arxiv.org/pdf/2501.17887"}] "sources": [{"kind": "http", "url": "https://arxiv.org/pdf/2501.17887"}]
}' }'
``` ```
@@ -258,7 +258,7 @@ curl -X 'POST' \
-H "accept: application/json" \ -H "accept: application/json" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"http_sources": [{"url": "https://arxiv.org/pdf/2501.17887"}] "sources": [{"kind": "http", "url": "https://arxiv.org/pdf/2501.17887"}]
}' }'
``` ```
@@ -291,7 +291,7 @@ task_id=$(curl -s -X 'POST' \
-H "accept: application/json" \ -H "accept: application/json" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d '{ -d '{
"http_sources": [{"url": "https://arxiv.org/pdf/2501.17887"}] "sources": [{"kind": "http", "url": "https://arxiv.org/pdf/2501.17887"}]
}' \ }' \
-c cookies.txt | grep -oP '"task_id":"\K[^"]+') -c cookies.txt | grep -oP '"task_id":"\K[^"]+')
``` ```

View File

@@ -37,7 +37,7 @@ New version:
"options": {}, // conversion options "options": {}, // conversion options
"sources": [ "sources": [
// input document provided as base64-encoded string // input document provided as base64-encoded string
{"kind": "kind", "base64_string": "abc123...", "filename": "file.pdf"}, {"kind": "file", "base64_string": "abc123...", "filename": "file.pdf"},
// input document provided as http urls // input document provided as http urls
{"kind": "http", "url": "https://..."}, {"kind": "http", "url": "https://..."},
] ]

BIN
img/fastapi-ui.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -1,6 +1,6 @@
[project] [project]
name = "docling-serve" name = "docling-serve"
version = "1.2.0" # DO NOT EDIT, updated automatically version = "1.2.1" # DO NOT EDIT, updated automatically
description = "Running Docling as a service" description = "Running Docling as a service"
license = {text = "MIT"} license = {text = "MIT"}
authors = [ authors = [
@@ -35,7 +35,7 @@ requires-python = ">=3.10"
dependencies = [ dependencies = [
"docling~=2.38", "docling~=2.38",
"docling-core>=2.44.1", "docling-core>=2.44.1",
"docling-jobkit[kfp,vlm]~=1.3", "docling-jobkit[kfp,vlm]>=1.3.1,<2.0.0",
"fastapi[standard]~=0.115", "fastapi[standard]~=0.115",
"httpx~=0.28", "httpx~=0.28",
"pydantic~=2.10", "pydantic~=2.10",

1675
uv.lock generated

File diff suppressed because one or more lines are too long