Skip to content

Commit 3ec43ee

Browse files
authored
Merge pull request #220 from openai/v4
v4
2 parents dc821be + 31ddda8 commit 3ec43ee

File tree

190 files changed

+48087
-10387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+48087
-10387
lines changed

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
plugins: ['@typescript-eslint', 'unused-imports', 'prettier'],
4+
rules: {
5+
'no-unused-vars': 'off',
6+
'prettier/prettier': 'error',
7+
'unused-imports/no-unused-imports': 'error',
8+
},
9+
root: true,
10+
};

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Bug report
22
description: Create a report to help us improve
3-
labels: ["bug"]
3+
labels: ['bug']
44
body:
55
- type: markdown
66
attributes:
@@ -53,4 +53,4 @@ body:
5353
label: Library version
5454
placeholder: openai v3.0.1
5555
validations:
56-
required: true
56+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ contact_links:
44
url: https://help.openai.com/
55
about: |
66
Please only file issues here that you believe represent actual bugs or feature requests for the OpenAI Node library.
7-
If you're having general trouble with the OpenAI API, please visit our help center to get support.
7+
If you're having general trouble with the OpenAI API, please visit our help center to get support.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Feature request
22
description: Suggest an idea for this library
3-
labels: ["feature-request"]
3+
labels: ['feature-request']
44
body:
55
- type: markdown
66
attributes:
@@ -17,4 +17,4 @@ body:
1717
id: context
1818
attributes:
1919
label: Additional context
20-
description: Add any other context about the feature request here.
20+
description: Add any other context about the feature request here.

.github/workflows/test.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,23 @@ name: Node.js CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
7-
branches: [ master ]
7+
branches: [master]
88

99
jobs:
1010
build:
11-
1211
runs-on: ubuntu-latest
1312

1413
strategy:
1514
matrix:
1615
node-version: [16.x, 18.x]
1716
steps:
18-
- uses: actions/checkout@v3
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v3
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
cache: 'npm'
24-
- run: npm ci
25-
- run: npm run build
17+
- uses: actions/checkout@v3
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
cache: 'npm'
23+
- run: npm ci
24+
- run: npm run build

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
/node_modules
1+
node_modules
2+
yarn-error.log
3+
codegen.log
4+
dist
5+
/deno
6+
/*.tgz

.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.openapi-generator-ignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.openapi-generator/FILES

Lines changed: 0 additions & 6 deletions
This file was deleted.

.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)