Skip to content

Commit e3efc59

Browse files
committed
Updates to fine tune spec
1 parent b060f6d commit e3efc59

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

openapi.yaml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ paths:
323323
"finish_reason": null
324324
}
325325
],
326-
"model": "text-davinci-003"
326+
"model": "gpt-3.5-turbo-instruct"
327327
}
328328
/edits:
329329
post:
@@ -1136,7 +1136,7 @@ paths:
11361136
"fine_tuned_model": null,
11371137
"organization_id": "org-123",
11381138
"result_files": [],
1139-
"status": "pending",
1139+
"status": "queued",
11401140
"validation_file": null,
11411141
"training_file": "file-abc123",
11421142
}
@@ -1183,7 +1183,7 @@ paths:
11831183
"fine_tuned_model": null,
11841184
"organization_id": "org-123",
11851185
"result_files": [],
1186-
"status": "pending",
1186+
"status": "queued",
11871187
"validation_file": null,
11881188
"training_file": "file-abc123",
11891189
"hyperparameters":{"n_epochs":2},
@@ -2270,6 +2270,7 @@ components:
22702270
[
22712271
"babbage-002",
22722272
"davinci-002",
2273+
"gpt-3.5-turbo-instruct",
22732274
"text-davinci-003",
22742275
"text-davinci-002",
22752276
"text-davinci-001",
@@ -2508,9 +2509,8 @@ components:
25082509
type: string
25092510
description: &completion_finish_reason_description |
25102511
The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,
2511-
`length` if the maximum number of tokens specified in the request was reached,
2512-
or `content_filter` if content was omitted due to a flag from our content filters.
2513-
enum: ["stop", "length", "content_filter"]
2512+
or `length` if the maximum number of tokens specified in the request was reached.
2513+
enum: ["stop", "length"]
25142514
usage:
25152515
$ref: "#/components/schemas/CompletionUsage"
25162516
required:
@@ -2814,10 +2814,8 @@ components:
28142814
type: string
28152815
description: &chat_completion_finish_reason_description |
28162816
The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence,
2817-
`length` if the maximum number of tokens specified in the request was reached,
2818-
`content_filter` if content was omitted due to a flag from our content filters,
2819-
or `function_call` if the model called a function.
2820-
enum: ["stop", "length", "function_call", "content_filter"]
2817+
`length` if the maximum number of tokens specified in the request was reached, or `function_call` if the model called a function.
2818+
enum: ["stop", "length", "function_call"]
28212819
usage:
28222820
$ref: "#/components/schemas/CompletionUsage"
28232821
required:
@@ -3870,7 +3868,7 @@ components:
38703868
description: The organization that owns the fine-tuning job.
38713869
status:
38723870
type: string
3873-
description: The current status of the fine-tuning job, which can be either `created`, `pending`, `running`, `succeeded`, `failed`, or `cancelled`.
3871+
description: The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`.
38743872
hyperparameters:
38753873
type: object
38763874
description: The hyperparameters used for the fine-tuning job. See the [fine-tuning guide](/docs/guides/fine-tuning) for more details.
@@ -3884,10 +3882,11 @@ components:
38843882
maximum: 50
38853883
default: auto
38863884
description:
3887-
The number of epochs to train the model for. An epoch refers to one
3888-
full cycle through the training dataset.
3885+
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
38893886

3890-
"Auto" decides the optimal number of epochs based on the size of the dataset. If setting the number manually, we support any number between 1 and 50 epochs.
3887+
"auto" decides the optimal number of epochs based on the size of the dataset. If setting the number manually, we support any number between 1 and 50 epochs.
3888+
required:
3889+
- n_epochs
38913890
training_file:
38923891
type: string
38933892
description: The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).
@@ -3920,11 +3919,15 @@ components:
39203919
type: string
39213920
description: The parameter that was invalid, usually `training_file` or `validation_file`. This field will be null if the failure was not parameter-specific.
39223921
nullable: true
3922+
required:
3923+
- message
3924+
- code
3925+
- param
39233926
required:
39243927
- id
39253928
- object
39263929
- created_at
3927-
- updated_at
3930+
- finished_at
39283931
- model
39293932
- fine_tuned_model
39303933
- organization_id

0 commit comments

Comments
 (0)