Skip to content

Commit cca9263

Browse files
authored
docs: Correct ConvertDocumentRequest example in docs and README (#110)
Signed-off-by: Eric Deandrea <[email protected]>
1 parent 78a9cc6 commit cca9263

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ DoclingServeApi doclingServeApi = DoclingServeClientBuilderFactory.newBuilder()
5555
.build();
5656

5757
ConvertDocumentRequest request = ConvertDocumentRequest.builder()
58-
.sources(List.of(HttpSource.builder().url(URI.create("https://arxiv.org/pdf/2408.09869")).build()))
58+
.source(
59+
HttpSource.builder()
60+
.url(URI.create("https://arxiv.org/pdf/2408.09869"))
61+
.build()
62+
)
5963
.build();
6064

6165
ConvertDocumentResponse response = doclingServeApi.convertSource(request);

docs/src/doc/docs/getting-started.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ DoclingServeApi doclingServeApi = DoclingServeClientBuilderFactory.newBuilder()
1414
.build();
1515

1616
ConvertDocumentRequest request = ConvertDocumentRequest.builder()
17-
.sources(List.of(HttpSource.builder().url(URI.create("https://arxiv.org/pdf/2408.09869")).build()))
17+
.source(
18+
HttpSource.builder()
19+
.url(URI.create("https://arxiv.org/pdf/2408.09869"))
20+
.build()
21+
)
1822
.build();
1923

2024
ConvertDocumentResponse response = doclingServeApi.convertSource(request);

0 commit comments

Comments
 (0)