Преглед на файлове

fix dev/reformat (#2542)

Co-authored-by: jyong <jyong@dify.ai>
tags/0.5.7
Jyong преди 1 година
родител
ревизия
b03bbab5ad
No account linked to committer's email address
променени са 1 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 3
    4
      api/core/splitter/fixed_text_splitter.py

+ 3
- 4
api/core/splitter/fixed_text_splitter.py Целия файл

@@ -8,12 +8,11 @@ from core.model_runtime.model_providers.__base.text_embedding_model import TextE
from core.model_runtime.model_providers.__base.tokenizers.gpt2_tokenzier import GPT2Tokenizer
from core.splitter.text_splitter import (
TS,
AbstractSet,
Collection,
Literal,
RecursiveCharacterTextSplitter,
Set,
TokenTextSplitter,
Type,
Union,
)

@@ -25,9 +24,9 @@ class EnhanceRecursiveCharacterTextSplitter(RecursiveCharacterTextSplitter):

@classmethod
def from_encoder(
cls: Type[TS],
cls: type[TS],
embedding_model_instance: Optional[ModelInstance],
allowed_special: Union[Literal[all], AbstractSet[str]] = set(),
allowed_special: Union[Literal[all], Set[str]] = set(),
disallowed_special: Union[Literal[all], Collection[str]] = "all",
**kwargs: Any,
):

Loading…
Отказ
Запис