Skip to content

Commit 8096a6a

Browse files
authored
update custom metadata to explain 5 metadata limit (#18359)
* Update custom-metadata.mdx * Update limits.mdx * Update limits.mdx
1 parent 9d84806 commit 8096a6a

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/content/docs/ai-gateway/configuration/custom-metadata.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ Custom metadata in AI Gateway allows you to tag requests with user IDs or other
1414
* **Enhanced Logging**: Metadata appears in your logs, allowing for detailed inspection and troubleshooting.
1515
* **Search and Filter**: Use metadata to efficiently search and filter through logged requests.
1616

17+
:::note
18+
19+
20+
AI Gateway allows you to pass up to five custom metadata entries per request. If more than five entries are provided, only the first five will be saved; additional entries will be ignored. Ensure your custom metadata is limited to five entries to avoid unprocessed or lost data.
21+
22+
:::
23+
1724
## Supported Metadata Types
1825

1926
* String

src/content/docs/ai-gateway/reference/limits.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,16 @@ The following limits apply to gateway configurations, logs, and related features
1111

1212
| Feature | Limit |
1313
| --------------------------------------------------------------- | ----------------------------------- |
14+
| Cacheable request size | 25 MB per request |
15+
| Custom metadata | 5 entries per request |
1416
| Datasets | 10 per gateway |
1517
| Gateways | 10 per account |
18+
| Gateway name length | 64 characters |
1619
| Logs stored [paid plan](/ai-gateway/reference/pricing/) | 10 million per gateway <sup>1</sup> |
1720
| Logs stored [free plan](/ai-gateway/reference/pricing/) | 100,000 per account <sup>2</sup> |
1821
| Log size stored | 10 MB per log <sup>3</sup> |
1922
| Logpush jobs | 4 per account |
2023
| Logpush size limit | 1MB per log |
21-
| Gateway name length | 64 characters |
22-
| Cacheable request size | 25 MB per request |
2324

2425
<sup>1</sup> If you have reached 10 million logs stored per gateway, new logs
2526
will stop being saved. To continue saving logs, you must delete older logs in

0 commit comments

Comments
 (0)