mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-26 01:52:16 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user