Skip to content

Commit d4f4946

Browse files
committed
Refresh code samples
1 parent 753b771 commit d4f4946

File tree

398 files changed

+6256
-12212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+6256
-12212
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,4 @@ website/node_modules
163163
.vagrant/
164164
*.iml
165165
website/vendor
166+
tfplan

docs/data-sources/assistant.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# Fetch a specific assistant by ID
17+
data "openai_assistant" "code_reviewer" {
18+
assistant_id = "asst_8sPATZ7dVbBL1m1Yve97j2BM"
19+
}
20+
21+
# Output the assistant ID
22+
output "assistant_id" {
23+
value = data.openai_assistant.code_reviewer.id
24+
}
25+
```
1426

1527
<!-- schema generated by tfplugindocs -->
1628
## Schema

docs/data-sources/assistants.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,23 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# List all assistants
17+
data "openai_assistants" "all" {
18+
# Optional: Limit the number of assistants returned
19+
# limit = 20
20+
21+
# Optional: Order by created_at
22+
# order = "desc"
23+
}
24+
25+
# Output total number of assistants
26+
output "assistant_count" {
27+
value = length(data.openai_assistants.all.assistants)
28+
}
29+
```
1430

1531
<!-- schema generated by tfplugindocs -->
1632
## Schema

docs/data-sources/batch.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# Fetch a specific batch job by ID
17+
data "openai_batch" "embeddings_batch" {
18+
batch_id = "batch_abc123"
19+
}
20+
21+
# Output batch job details
22+
output "batch_status" {
23+
value = data.openai_batch.embeddings_batch.status
24+
}
25+
```
1426

1527
<!-- schema generated by tfplugindocs -->
1628
## Schema

docs/data-sources/file.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# Fetch a specific file by ID
17+
data "openai_file" "training_data" {
18+
file_id = "file-abc123"
19+
}
20+
21+
# Output file ID
22+
output "file_id" {
23+
value = data.openai_file.training_data.id
24+
}
25+
```
1426

1527
<!-- schema generated by tfplugindocs -->
1628
## Schema

docs/data-sources/files.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,25 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# List all files with optional filtering
17+
data "openai_files" "all" {
18+
# Optional: filter by purpose
19+
purpose = "fine-tune"
20+
}
21+
22+
# List files for assistants
23+
data "openai_files" "assistant_files" {
24+
purpose = "assistants"
25+
}
26+
27+
# Output total files count
28+
output "total_files" {
29+
value = length(data.openai_files.all.files)
30+
}
31+
```
1432

1533
<!-- schema generated by tfplugindocs -->
1634
## Schema

docs/data-sources/fine_tuning_job.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# Fetch a specific fine-tuning job by ID
17+
data "openai_fine_tuning_job" "custom_model" {
18+
fine_tuning_job_id = "ftjob-1bkb8XBdqNaTI1p5MAq6JxVV"
19+
}
20+
21+
# Output fine-tuning job status
22+
output "job_status" {
23+
value = data.openai_fine_tuning_job.custom_model.status
24+
}
25+
```
1426

1527
<!-- schema generated by tfplugindocs -->
1628
## Schema

docs/data-sources/fine_tuning_jobs.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,20 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# List all fine-tuning jobs
17+
data "openai_fine_tuning_jobs" "all" {
18+
# Optional: Limit the number of jobs returned
19+
# limit = 20
20+
}
21+
22+
# Output total job count
23+
output "total_jobs" {
24+
value = length(data.openai_fine_tuning_jobs.all.jobs)
25+
}
26+
```
1427

1528
<!-- schema generated by tfplugindocs -->
1629
## Schema

docs/data-sources/invite.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,19 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# Fetch a specific invite by ID
17+
data "openai_invite" "developer_invite" {
18+
invite_id = "invite-abc123"
19+
}
20+
21+
# Output invite status
22+
output "invite_status" {
23+
value = data.openai_invite.developer_invite.status
24+
}
25+
```
1426

1527
<!-- schema generated by tfplugindocs -->
1628
## Schema

docs/data-sources/invites.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,18 @@ description: |-
1010

1111

1212

13-
13+
## Example Usage
14+
15+
```terraform
16+
# List all invites (no filtering arguments supported)
17+
data "openai_invites" "all" {
18+
}
19+
20+
# Output total invites count
21+
output "total_invites" {
22+
value = length(data.openai_invites.all.invites)
23+
}
24+
```
1425

1526
<!-- schema generated by tfplugindocs -->
1627
## Schema

0 commit comments

Comments
 (0)