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
test(*): Avoid import from `api` in tests. (#7251)
-LAN-b5d472fad78a
diff --git a/api/libs/bearer_data_source.py b/api/libs/bearer_data_source.pyindex 04de1fb6dae..c1aee7b819e 100644--- a/api/libs/bearer_data_source.py+++ b/api/libs/bearer_data_source.py@@ -2,10 +2,10 @@from abc import abstractmethodimport requests-from api.models.source import DataSourceBearerBindingfrom flask_login import current_userfrom extensions.ext_database import db+from models.source import DataSourceBearerBindingclass BearerDataSource:diff --git a/api/tests/integration_tests/model_runtime/__mock/huggingface_tei.py b/api/tests/integration_tests/model_runtime/__mock/huggingface_tei.pyindex 2f66d707ca6..c2fe95974b1 100644--- a/api/tests/integration_tests/model_runtime/__mock/huggingface_tei.py+++ b/api/tests/integration_tests/model_runtime/__mock/huggingface_tei.py@@ -1,5 +1,4 @@--from api.core.model_runtime.model_providers.huggingface_tei.tei_helper import TeiModelExtraParameter+from core.model_runtime.model_providers.huggingface_tei.tei_helper import TeiModelExtraParameterclass MockTEIClass:@@ -12,7 +11,7 @@ class MockTEIClass:model_type = 'embedding'return TeiModelExtraParameter(model_type=model_type, max_input_length=512, max_client_batch_size=1)-+@staticmethoddef invoke_tokenize(server_url: str, texts: list[str]) -> list[list[dict]]:# Use space as token separator, and split the text into tokensdiff --git a/api/tests/integration_tests/model_runtime/huggingface_tei/test_embeddings.py b/api/tests/integration_tests/model_runtime/huggingface_tei/test_embeddings.pyindex da65c7dfc7c..ed371fbc07a 100644--- a/api/tests/integration_tests/model_runtime/huggingface_tei/test_embeddings.py+++ b/api/tests/integration_tests/model_runtime/huggingface_tei/test_embeddings.py@@ -1,12 +1,12 @@import osimport pytest-from api.core.model_runtime.model_providers.huggingface_tei.text_embedding.text_embedding import TeiHelperfrom core.model_runtime.entities.text_embedding_entities import TextEmbeddingResultfrom core.model_runtime.errors.validate import CredentialsValidateFailedErrorfrom core.model_runtime.model_providers.huggingface_tei.text_embedding.text_embedding import (HuggingfaceTeiTextEmbeddingModel,+ TeiHelper,)from tests.integration_tests.model_runtime.__mock.huggingface_tei import MockTEIClass