File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -132,22 +132,18 @@ a subclass of `APIError` will be thrown:
132
132
133
133
<!-- prettier-ignore -->
134
134
``` ts
135
- async function main() {
136
- const job = await client .fineTuning .jobs
137
- .create ({ model: ' gpt-4o' , training_file: ' file-abc123' })
138
- .catch (async (err ) => {
139
- if (err instanceof OpenAI .APIError ) {
140
- console .log (err .request_id );
141
- console .log (err .status ); // 400
142
- console .log (err .name ); // BadRequestError
143
- console .log (err .headers ); // {server: 'nginx', ...}
144
- } else {
145
- throw err ;
146
- }
147
- });
148
- }
149
-
150
- main ();
135
+ const job = await client .fineTuning .jobs
136
+ .create ({ model: ' gpt-4o' , training_file: ' file-abc123' })
137
+ .catch (async (err ) => {
138
+ if (err instanceof OpenAI .APIError ) {
139
+ console .log (err .request_id );
140
+ console .log (err .status ); // 400
141
+ console .log (err .name ); // BadRequestError
142
+ console .log (err .headers ); // {server: 'nginx', ...}
143
+ } else {
144
+ throw err ;
145
+ }
146
+ });
151
147
```
152
148
153
149
Error codes are as follows:
You can’t perform that action at this time.
0 commit comments