MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / getFormatFeatureById

Function getFormatFeatureById

packages/parser/src/index.ts:71–74  ·  view source on GitHub ↗
(formatId: string)

Source from the content-addressed store, hash-verified

69 * 用于手动指定格式时跳过嗅探
70 */
71export function getFormatFeatureById(formatId: string): FormatFeature | null {
72 const all = sniffer.getSupportedFormats()
73 return all.find((f) => f.id === formatId) ?? null
74}
75
76/**
77 * 获取格式的预处理器(如果有)

Callers 1

streamingImportFunction · 0.90

Calls 1

getSupportedFormatsMethod · 0.65

Tested by

no test coverage detected