Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 5fd8fd3

Browse files
Update app/models/llm_quota.rb
Co-authored-by: Keegan George <[email protected]>
1 parent 9bd2786 commit 5fd8fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/llm_quota.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class LlmQuota < ActiveRecord::Base
1111
# we can not validate on create cause it breaks build
1212
validates :llm_model_id, presence: true, on: :update
1313
validates :duration_seconds, presence: true, numericality: { greater_than: 0 }
14-
validates :max_tokens, numericality: { greater_than: 0, allow_nil: true }
14+
validates :max_tokens, numericality: { only_integer: true, greater_than: 0, allow_nil: true }
1515
validates :max_usages, numericality: { greater_than: 0, allow_nil: true }
1616

1717
validate :at_least_one_limit

0 commit comments

Comments
 (0)