Skip to content

Commit f6a7079

Browse files
vMaroonliu-cong
andauthored
Apply suggestion from @liu-cong
Co-authored-by: Cong Liu <[email protected]>
1 parent 988d2a5 commit f6a7079

File tree

1 file changed

+1
-1
lines changed
  • pkg/epp/scheduling/framework/plugins/multi/prefix

1 file changed

+1
-1
lines changed

pkg/epp/scheduling/framework/plugins/multi/prefix/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func hashPrompt(ctx context.Context, request *types.LLMRequest, cacheBlockSize i
271271
}
272272
// Split the body into blocks of size cacheBlockSize.
273273
// If the last block is smaller than cacheBlockSize, it will be ignored.
274-
res := make([]BlockHash, 0, 1+len(userInput)/cacheBlockSize)
274+
res := make([]BlockHash, 0, len(userInput)/cacheBlockSize)
275275
// Add the model to the first block hash so that different models have different hashes even with the same body.
276276
h := xxhash.New()
277277
_, _ = h.Write([]byte(request.TargetModel))

0 commit comments

Comments
 (0)