You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/rate_limit.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,44 @@ description: |-
10
10
11
11
Manages rate limits for an OpenAI model in a project. Note that rate limits cannot be truly deleted via the API, so this resource will reset rate limits to defaults when removed. This resource requires an admin API key with the api.management.read scope for full functionality, but will gracefully handle permission errors to allow operations to continue.
12
12
13
+
## Example Usage
13
14
15
+
```terraform
16
+
# Set rate limits for GPT-4o model in a project
17
+
resource "openai_rate_limit" "gpt4o_limits" {
18
+
project_id = "proj_abc123"
19
+
model = "gpt-4o"
20
+
21
+
max_requests_per_minute = 500
22
+
max_tokens_per_minute = 30000
23
+
}
24
+
25
+
# Set rate limits for GPT-4o-mini with additional constraints
@@ -23,7 +60,6 @@ Manages rate limits for an OpenAI model in a project. Note that rate limits cann
23
60
### Optional
24
61
25
62
-`batch_1_day_max_input_tokens` (Number) Maximum number of input tokens per day for batch processing.
26
-
-`ignore_rate_limit_warning` (Boolean) Set to true to acknowledge that OpenAI rate limits cannot be truly deleted and will be reset to defaults on removal.
27
63
-`max_audio_megabytes_per_1_minute` (Number) Maximum audio megabytes per minute.
28
64
-`max_images_per_minute` (Number) Maximum number of images per minute.
29
65
-`max_requests_per_1_day` (Number) Maximum number of requests per day.
0 commit comments