Feat/add-remote-file-upload-api (#9906)

This commit is contained in:
-LAN- 2024-11-01 15:51:22 +08:00 • committed by GitHub
commit 9ac2bb30f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
72 changed files with 788 additions and 272 deletions

View file

@ -4,7 +4,7 @@ import logging
import random
import time
import uuid
from typing import Optional
from typing import Any, Optional
from flask_login import current_user
from sqlalchemy import func
@ -675,7 +675,7 @@ class DocumentService:
def save_document_with_dataset_id(
dataset: Dataset,
document_data: dict,
account: Account,
account: Account | Any,
dataset_process_rule: Optional[DatasetProcessRule] = None,
created_from: str = "web",
):