MCPcopy
hub / github.com/janhq/jan / push

Function push

extensions/llamacpp-extension/src/util.ts:249–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247 let offset = 0
248
249 const push = () => {
250 if (current.length) {
251 batches.push({ batch: current, offset })
252 offset += current.length
253 current = []
254 currentTokens = 0
255 }
256 }
257
258 for (const raw of inputs) {
259 const text =

Callers 1

buildEmbedBatchesFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected