mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-09-07 17:58:55 +08:00
feat: add placeholder model metas (#15753)
### What problem does this PR solve? add placeholder model metas ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -184,7 +184,14 @@ async def list_provider_models(provider_name: str, api_key: str = None, base_url
|
||||
"name": llm["name"],
|
||||
"max_tokens": llm["max_tokens"],
|
||||
"model_types": [llm["model_type"]],
|
||||
"features": None
|
||||
"features": (
|
||||
llm.get("features")
|
||||
if llm.get("features") is not None
|
||||
else (
|
||||
(["is_tools"] if llm.get("is_tools") else [])
|
||||
+ (["thinking"] if llm.get("thinking") else [])
|
||||
)
|
||||
)
|
||||
} for llm in factory_info[0]["llm"]]
|
||||
|
||||
model_base_url = base_url or factory_info[0].get("url", "")
|
||||
|
||||
Reference in New Issue
Block a user