Skip to content

Commit 3617fdb

Browse files
committed
address code rabbit
1 parent b65baa2 commit 3617fdb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/aiperf/plugin/schema/plugins.schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@
533533
"default_block_size": {
534534
"anyOf": [
535535
{
536+
"minimum": 1,
536537
"type": "integer"
537538
},
538539
{

src/aiperf/plugin/schema/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ class CustomDatasetLoaderMetadata(BaseModel):
337337
)
338338
default_block_size: int | None = Field(
339339
default=None,
340+
ge=1,
340341
description=(
341342
"Default token block size for hash-based prompt caching. "
342343
"Used when the user does not explicitly set --isl-block-size. "

0 commit comments

Comments
 (0)