Skip to content

Commit 85fe06b

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#308)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 95d3e4a commit 85fe06b

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/libs/tryAGI.OpenAI/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,6 +1162,7 @@ paths:
11621162

11631163
Console.WriteLine($"{transcription.Text}");
11641164
node.js: |-
1165+
import fs from 'fs';
11651166
import OpenAI from 'openai';
11661167

11671168
const client = new OpenAI({
@@ -1284,6 +1285,7 @@ paths:
12841285

12851286
console.log(transcript.segments);
12861287
node.js: |-
1288+
import fs from 'fs';
12871289
import OpenAI from 'openai';
12881290

12891291
const client = new OpenAI({
@@ -1414,6 +1416,7 @@ paths:
14141416
console.log(event);
14151417
}
14161418
node.js: |-
1419+
import fs from 'fs';
14171420
import OpenAI from 'openai';
14181421

14191422
const client = new OpenAI({
@@ -1690,6 +1693,7 @@ paths:
16901693
}
16911694
main();
16921695
node.js: |-
1696+
import fs from 'fs';
16931697
import OpenAI from 'openai';
16941698

16951699
const client = new OpenAI({
@@ -1872,6 +1876,7 @@ paths:
18721876

18731877
Console.WriteLine($"{transcription.Text}");
18741878
node.js: |-
1879+
import fs from 'fs';
18751880
import OpenAI from 'openai';
18761881

18771882
const client = new OpenAI({
@@ -2022,6 +2027,7 @@ paths:
20222027

20232028
Console.WriteLine($"{transcription.Text}");
20242029
node.js: |-
2030+
import fs from 'fs';
20252031
import OpenAI from 'openai';
20262032

20272033
const client = new OpenAI({
@@ -2188,6 +2194,7 @@ paths:
21882194

21892195
Console.WriteLine($"{transcription.Text}");
21902196
node.js: |-
2197+
import fs from 'fs';
21912198
import OpenAI from 'openai';
21922199

21932200
const client = new OpenAI({
@@ -5622,6 +5629,7 @@ paths:
56225629
-H "Authorization: Bearer $OPENAI_API_KEY" \
56235630
-F file="@example.txt"
56245631
node.js: |-
5632+
import fs from 'fs';
56255633
import OpenAI from 'openai';
56265634

56275635
const client = new OpenAI({
@@ -9537,6 +9545,7 @@ paths:
95379545

95389546
main();
95399547
node.js: |-
9548+
import fs from 'fs';
95409549
import OpenAI from 'openai';
95419550

95429551
const client = new OpenAI({
@@ -12662,6 +12671,7 @@ paths:
1266212671
const image_bytes = Buffer.from(image_base64, "base64");
1266312672
fs.writeFileSync("basket.png", image_bytes);
1266412673
node.js: |-
12674+
import fs from 'fs';
1266512675
import OpenAI from 'openai';
1266612676

1266712677
const client = new OpenAI({
@@ -12767,6 +12777,7 @@ paths:
1276712777
console.log(event);
1276812778
}
1276912779
node.js: |-
12780+
import fs from 'fs';
1277012781
import OpenAI from 'openai';
1277112782

1277212783
const client = new OpenAI({
@@ -13132,6 +13143,7 @@ paths:
1313213143

1313313144
Console.WriteLine(image.ImageUri);
1313413145
node.js: |-
13146+
import fs from 'fs';
1313513147
import OpenAI from 'openai';
1313613148

1313713149
const client = new OpenAI({
@@ -26726,6 +26738,8 @@ paths:
2672626738
curl https://api.openai.com/v1/uploads/upload_abc123/parts
2672726739
-F data="aHR0cHM6Ly9hcGkub3BlbmFpLmNvbS92MS91cGxvYWRz..."
2672826740
node.js: >-
26741+
import fs from 'fs';
26742+
2672926743
import OpenAI from 'openai';
2673026744

2673126745

@@ -29721,6 +29735,7 @@ paths:
2972129735
response: ''
2972229736
request:
2972329737
node.js: |-
29738+
import fs from 'fs';
2972429739
import OpenAI from 'openai';
2972529740

2972629741
const client = new OpenAI({

0 commit comments

Comments
 (0)