Skip to content

Commit b83247a

Browse files
committed
fix(extract-core): vlm options
1 parent ba40ff1 commit b83247a

3 files changed

Lines changed: 25851 additions & 25436 deletions

File tree

‎extract-core/extract_core/cli/configs.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import json
12
from typing import Annotated
23

34
import typer
@@ -54,6 +55,9 @@ async def generate_docling_default_format_options() -> None:
5455
)
5556

5657
fmt_opts = generate_default_format_options()
57-
fmt_opts = FMT_OPTS_TA.dump_json(fmt_opts, polymorphic_serialization=True, indent=2)
58-
DOCLING_DEFAULT_FORMAT_OPTIONS_PATH.write_bytes(fmt_opts)
59-
print(fmt_opts.decode())
58+
fmt_opts = FMT_OPTS_TA.dump_python(
59+
fmt_opts, mode="json", polymorphic_serialization=True
60+
)
61+
fmt_opts = json.dumps(fmt_opts, indent=2, sort_keys=True)
62+
DOCLING_DEFAULT_FORMAT_OPTIONS_PATH.write_text(fmt_opts)
63+
print(fmt_opts)

0 commit comments

Comments
 (0)