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(api/services/app_generate_service.py): Remove wrong type hints. (#6535)
-LAN-617847e3c0b9
diff --git a/api/libs/helper.py b/api/libs/helper.pyindex 335c6688f49..15cd65dd6a3 100644--- a/api/libs/helper.py+++ b/api/libs/helper.py@@ -15,6 +15,7 @@ from zoneinfo import available_timezonesfrom flask import Response, current_app, stream_with_contextfrom flask_restful import fields+from core.app.features.rate_limiting.rate_limit import RateLimitGeneratorfrom extensions.ext_redis import redis_clientfrom models.account import Account@@ -159,7 +160,7 @@ def generate_text_hash(text: str) -> str:return sha256(hash_text.encode()).hexdigest()-def compact_generate_response(response: Union[dict, Generator]) -> Response:+def compact_generate_response(response: Union[dict, RateLimitGenerator]) -> Response:if isinstance(response, dict):return Response(response=json.dumps(response), status=200, mimetype='application/json')else:diff --git a/api/services/app_generate_service.py b/api/services/app_generate_service.pyindex e894570b971..cff4ba8af9d 100644--- a/api/services/app_generate_service.py+++ b/api/services/app_generate_service.py@@ -21,7 +21,7 @@ class AppGenerateService:args: Any,invoke_from: InvokeFrom,streaming: bool = True,- ) -> Union[dict, Generator[dict, None, None]]:+ ):"""App Content Generate:param app_model: app model