mirror of
https://github.com/docling-project/docling-serve.git
synced 2025-11-29 08:33:50 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3bd7828570 | ||
|
|
8b470cba8e | ||
|
|
8048f4589a | ||
|
|
b3058e91e0 | ||
|
|
63da9eedeb | ||
|
|
b15dc2529f |
13
CHANGELOG.md
13
CHANGELOG.md
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||

|
|
||||||
|

|
||||||
|
|
||||||
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"}]
|
||||||
}'
|
}'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -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": {}},
|
||||||
|
|||||||
@@ -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[^"]+')
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -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
BIN
img/fastapi-ui.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 226 KiB |
BIN
img/swagger.png
BIN
img/swagger.png
Binary file not shown.
|
Before Width: | Height: | Size: 24 KiB |
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user