Lightning.AiAssistant.Limiter (Lightning v2.14.5-pre1)

View Source

The AI assistant limiter to check for AI query quota.

Summary

Functions

Checks if has not reached the limit of the project ai queries quota.

Functions

validate_quota(project_id)

@spec validate_quota(Ecto.UUID.t()) ::
  :ok | Lightning.Extensions.UsageLimiting.error()

Checks if has not reached the limit of the project ai queries quota.