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

Method getSectionOptions

src/SourceCodeSection.ts:65–73  ·  view source on GitHub ↗
(maxTokens: number)

Source from the content-addressed store, hash-verified

63 }
64
65 private getSectionOptions(maxTokens: number): { sections: number; tokens: number; } {
66 if (maxTokens < 2000) {
67 return { sections: 1, tokens: maxTokens };
68 } else if (maxTokens <= 6000) {
69 return { sections: 1, tokens: 2000 };
70 } else {
71 return { sections: 2, tokens: 2000 };
72 }
73 }
74}

Callers 1

renderAsMessagesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected