Lightning.AiAssistant.Limiter (Lightning v2.13.5)

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.