View Source Lightning.AiAssistant.Limiter (Lightning v2.10.4)

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

Link to this function

validate_quota(project_id)

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

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