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
Fixed a bug where any content in the 'fetch' was converted to True (#4400)
Moonlit86e7c7321fd6
diff --git a/api/controllers/console/datasets/datasets_document.py b/api/controllers/console/datasets/datasets_document.pyindex 9dedcefe0f7..3e1870d1e11 100644--- a/api/controllers/console/datasets/datasets_document.py+++ b/api/controllers/console/datasets/datasets_document.py@@ -1,10 +1,12 @@import logging+from argparse import ArgumentTypeErrorfrom datetime import datetime, timezonefrom flask import requestfrom flask_login import current_userfrom flask_restful import Resource, fields, marshal, marshal_with, reqparsefrom sqlalchemy import asc, desc+from transformers.hf_argparser import string_to_boolfrom werkzeug.exceptions import Forbidden, NotFoundimport services@@ -141,7 +143,11 @@ class DatasetDocumentListApi(Resource):limit = request.args.get('limit', default=20, type=int)search = request.args.get('keyword', default=None, type=str)sort = request.args.get('sort', default='-created_at', type=str)- fetch = request.args.get('fetch', default=False, type=bool)+ # "yes", "true", "t", "y", "1" convert to True, while others convert to False.+ try:+ fetch = string_to_bool(request.args.get('fetch', default='false'))+ except (ArgumentTypeError, ValueError, Exception) as e:+ fetch = Falsedataset = DatasetService.get_dataset(dataset_id)if not dataset:raise NotFound('Dataset not found.')