MCPcopy Create free account
hub / github.com/Bytez-com/docs / main

Function main

docs/scripts/generatePages/index.js:10–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8const PY_TEMPLATE = fsSync.readFileSync(`${__dirname}/pyTemplate.py`).toString();
9
10async function main() {
11 for (const [
12 task,
13 {
14 title,
15 description,
16 icon,
17 exampleModel: modelId,
18 supportsUrlInput,
19 supportsBase64Input,
20 mediaInputType,
21 docExamples,
22 },
23 ] of Object.entries(MODEL_DOCS_OBJECT.tasks)) {
24 const tasksToProcess = [
25 // 'text-generation',
26 // 'chat',
27 // 'audio-text-to-text',
28 // 'image-text-to-text',
29 // 'video-text-to-text',
30 // 'fill-mask',
31 // 'text-to-speech',
32 // 'text-to-audio',
33 // 'text-to-image',
34 // 'translation',
35 // 'summarization',
36 // 'feature-extraction',
37 // 'text-classification',
38 // 'token-classification',
39 // 'text2text-generation',
40 // 'question-answering',
41 // 'document-question-answering',
42 // 'visual-question-answering',
43 // 'zero-shot-object-detection',
44 // 'zero-shot-image-classification',
45 // 'zero-shot-classification',
46 // 'image-to-text',
47 // 'image-classification',
48 // 'image-segmentation',
49 // 'object-detection',
50 // 'mask-generation',
51 // 'image-feature-extraction',
52 // 'sentence-similarity',
53 // 'text-to-video',
54 // 'video-classification',
55 // 'automatic-speech-recognition',
56 // 'audio-classification',
57 // 'unconditional-image-generation',
58 ];
59
60 // if (!tasksToProcess.includes(task)) {
61 // continue;
62 // }
63
64 console.log('Generating pages for task: ', task);
65
66 const taskSnippets = [];
67

Callers 1

index.jsFile · 0.70

Calls 5

toStringMethod · 0.95
generateCodeSnippetsFunction · 0.85
toAccordionFunction · 0.85
constructPageHeaderFunction · 0.85
constructOpenApiSpecFunction · 0.85

Tested by

no test coverage detected