MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / sub_title

Method sub_title

apps/common/utils/split_model.py:437–442  ·  view source on GitHub ↗
(paragraph: Dict)

Source from the content-addressed store, hash-verified

435
436 @staticmethod
437 def sub_title(paragraph: Dict):
438 if 'title' in paragraph:
439 title = paragraph.get('title')
440 if len(title) > 255:
441 return {**paragraph, 'title': title[0:255], 'content': title[255:len(title)] + paragraph.get('content')}
442 return paragraph
443
444 @staticmethod
445 def content_is_null(paragraph: Dict, title_list: List[str]):

Callers 1

post_reset_paragraphMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected