MCPcopy Create free account
hub / github.com/Stevenic/codepilot / getSectionOptions

Method getSectionOptions

lib/SourceCodeSection.js:68–78  ·  view source on GitHub ↗
(maxTokens)

Source from the content-addressed store, hash-verified

66 });
67 }
68 getSectionOptions(maxTokens) {
69 if (maxTokens < 2000) {
70 return { sections: 1, tokens: maxTokens };
71 }
72 else if (maxTokens <= 6000) {
73 return { sections: 1, tokens: 2000 };
74 }
75 else {
76 return { sections: 2, tokens: 2000 };
77 }
78 }
79}
80exports.SourceCodeSection = SourceCodeSection;
81//# sourceMappingURL=SourceCodeSection.js.map

Callers 1

renderAsMessagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected