Open Source API Gateway

jdbcAiApiUsageStore

Version

Records the token usage of every request in a database table (experimental). It neither authenticates clients nor enforces token limits, so use it where the gateway should only account for what was used. The table ai_api_usage is created at startup if it does not exist, and usage that cannot be attributed to a user is recorded as anonymous.

Syntax

jdbcAiApiUsageStore:
datasource: <string>
jdbcAiApiUsageStore:
  datasource: <string>

Attributes

NameRequiredDefaultDescriptionExamples
datasourcefalse---

Can be used in