Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rattrayalex committed Aug 16, 2023
1 parent 8f133ec commit 8279976
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ paths:
model: 'gpt-3.5-turbo',
});
console.log(completion.id);
console.log(completion.choices[0]);
}
main();
Expand Down Expand Up @@ -375,7 +375,7 @@ paths:
instruction: 'Fix the spelling mistakes.',
});
console.log(edit.object);
console.log(edit);
}
main();
Expand Down Expand Up @@ -446,7 +446,7 @@ paths:
async function main() {
const image = await openai.images.generate({ prompt: 'A cute baby sea otter' });
console.log(image.created);
console.log(image.data);
}
main();
response: |
Expand Down Expand Up @@ -574,15 +574,17 @@ paths:
size="1024x1024"
)
node.js: |-
import OpenAI, { toFile } from 'openai';
import fs from 'fs';
import OpenAI from 'openai';
const openai = new OpenAI();
async function main() {
const image = await openai.images.createVariation({
image: await toFile(Buffer.from('# my file contents'), 'README.md'),
image: fs.createReadStream('otter.png'),
});
console.log(image.created);
console.log(image.data);
}
main();
response: |
Expand Down Expand Up @@ -714,6 +716,7 @@ paths:
node: |-
import fs from 'fs';
import OpenAI from 'openai';
const openai = new OpenAI();
async function main() {
Expand Down Expand Up @@ -1102,6 +1105,7 @@ paths:
openai.FineTune.create(training_file="file-XGinujblHPwGLSztz8cPS8XY")
node.js: |
import OpenAI from 'openai';
const openai = new OpenAI();
async function main() {
Expand Down Expand Up @@ -1372,6 +1376,7 @@ paths:
openai.FineTune.cancel(id="ft-AF1WoRqd3aJAHsqc9NY7iL8F")
node.js: |-
import OpenAI from 'openai';
const openai = new OpenAI();
async function main() {
Expand Down Expand Up @@ -1459,6 +1464,7 @@ paths:
openai.FineTune.list_events(id="ft-AF1WoRqd3aJAHsqc9NY7iL8F")
node.js: |-
import OpenAI from 'openai';
const openai = new OpenAI();
async function main() {
Expand Down Expand Up @@ -1606,6 +1612,7 @@ paths:
openai.Model.retrieve("VAR_model_id")
node.js: |-
import OpenAI from 'openai';
const openai = new OpenAI();
async function main() {
Expand Down

0 comments on commit 8279976

Please sign in to comment.