Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: Show rerank in system for localai (#4652)
Giovanny Gutiérrez2deb23e00e37
diff --git a/api/core/model_runtime/model_providers/localai/rerank/rerank.py b/api/core/model_runtime/model_providers/localai/rerank/rerank.pyindex 96087d06dc2..c8ba9a6c7c1 100644--- a/api/core/model_runtime/model_providers/localai/rerank/rerank.py+++ b/api/core/model_runtime/model_providers/localai/rerank/rerank.py@@ -5,6 +5,8 @@ import httpxfrom requests import postfrom yarl import URL+from core.model_runtime.entities.common_entities import I18nObject+from core.model_runtime.entities.model_entities import AIModelEntity, FetchFrom, ModelTypefrom core.model_runtime.entities.rerank_entities import RerankDocument, RerankResultfrom core.model_runtime.errors.invoke import (InvokeAuthorizationError,@@ -118,3 +120,17 @@ class LocalaiRerankModel(RerankModel):InvokeAuthorizationError: [httpx.HTTPStatusError],InvokeBadRequestError: [httpx.RequestError]}++ def get_customizable_model_schema(self, model: str, credentials: dict) -> AIModelEntity:+ """+ generate custom model entities from credentials+ """+ entity = AIModelEntity(+ model=model,+ label=I18nObject(en_US=model),+ model_type=ModelType.RERANK,+ fetch_from=FetchFrom.CUSTOMIZABLE_MODEL,+ model_properties={}+ )++ return entity