Feat: SoMark (#16482)

Follow #15486
Co-authored-by: limuting <limuting233@gmail.com>
Co-authored-by: lutianyi <lutianyi233@163.com>
Co-authored-by: justinychuang <huangyicheng@soulcode.cn>
Co-authored-by: maybehokori <138367708+maybehokori@users.noreply.github.com>
This commit is contained in:
Lynn
2026-07-01 13:29:28 +08:00
committed by GitHub
parent b6fa5ce4ea
commit 400476f0b3
24 changed files with 2071 additions and 154 deletions

View File

@@ -32,5 +32,12 @@ def normalize_layout_recognizer(layout_recognizer_raw: Any) -> tuple[Any, str |
elif lowered.endswith("@opendataloader"):
parser_model_name = layout_recognizer_raw
layout_recognizer = "OpenDataLoader"
elif lowered.endswith("@somark"):
# Keep the full 3-segment form ``<llm_name>@<instance_name>@<provider>``
# produced by the new Tenant LLM Provider UI (#14595); downstream
# ``get_model_config_from_provider_instance`` -> ``split_model_name``
# expects all three segments to locate the provider/instance row.
parser_model_name = layout_recognizer_raw
layout_recognizer = "SoMark"
return layout_recognizer, parser_model_name