MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / constructor

Method constructor

chat/api.js:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 const fileData = part?.file?.file_data || '';
46 return part?.type === 'file' && (
47 /\.pdf$/i.test(filename) ||
48 (typeof fileData === 'string' && fileData.startsWith('data:application/pdf'))
49 );
50 });
51 });
52}
53
54function applyPdfFileParserPlugin(body, messages = []) {
55 if (!hasPdfContent(messages)) return;
56 body.plugins = [

Callers

nothing calls this directly

Calls 1

getDefaultModelConfigFunction · 0.90

Tested by

no test coverage detected