ZIm/crates/collab/migrations_llm
Marshall Bowers cf0d1e4229
collab: Add granular tokens per minute columns to models table (#28090)
This PR adds new granular tokens per minute columns to the `models`
table in preparation for more fine-grained rate limits.

The following columns have been added:

- `max_input_tokens_per_minute`
- `max_output_tokens_per_minute`

These mirror the "Maximum input tokens per minute (ITPM)" and "Maximum
output tokens per minute (OTPM)" [rate limits from
Anthropic](https://docs.anthropic.com/en/api/rate-limits#rate-limits).

Release Notes:

- N/A
2025-04-04 14:33:15 +00:00
..
20240806182921_create_providers_and_models.sql Apply rate limits in LLM service (#15997) 2024-08-08 15:46:33 -07:00
20240806213401_create_usages.sql Apply rate limits in LLM service (#15997) 2024-08-08 15:46:33 -07:00
20240809130000_change_rate_limit_columns_to_bigint.sql Larger rate limit integers (#16047) 2024-08-09 14:07:49 -07:00
20240809160000_add_pricing_columns_to_models.sql Capture telemetry data on per-user monthly LLM spending (#16050) 2024-08-09 16:38:37 -07:00
20240812184444_add_is_staff_to_usages.sql collab: Use a separate Anthropic API key for Zed staff (#16128) 2024-08-12 15:20:34 -04:00
20240812225346_create_lifetime_usages.sql Track lifetime spending for each user and model (#16137) 2024-08-12 20:15:26 -04:00
20240813002237_add_revoked_access_tokens_table.sql collab: Add ability to revoke LLM service access tokens (#16143) 2024-08-12 21:47:05 -04:00
20241007173634_add_cache_token_counts.sql collab: Track cache writes/reads in LLM usage (#18834) 2024-10-07 17:32:49 -04:00
20241007220716_drop_incorrect_usages_columns.sql collab: Drop mistakenly-added columns from the usages table (#18835) 2024-10-07 18:21:48 -04:00
20241008155620_create_monthly_usages.sql collab: Update billing code for LLM usage billing (#18879) 2024-10-08 18:29:38 -04:00
20241010151249_create_billing_events.sql collab: Add usage-based billing for LLM interactions (#19081) 2024-10-11 13:36:54 -04:00
20250404141155_add_granular_token_limits_to_models.sql collab: Add granular tokens per minute columns to models table (#28090) 2025-04-04 14:33:15 +00:00