We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21ef88 commit 34e128fCopy full SHA for 34e128f
README.md
@@ -275,7 +275,7 @@ a subclass of `APIError` will be thrown:
275
async function main() {
276
const job = await openai.fineTuning.jobs
277
.create({ model: 'gpt-3.5-turbo', training_file: 'file-abc123' })
278
- .catch((err) => {
+ .catch(async (err) => {
279
if (err instanceof OpenAI.APIError) {
280
console.log(err.status); // 400
281
console.log(err.name); // BadRequestError
0 commit comments