Skip to content

Commit

Permalink
OpenAI npm v4 (#7)
Browse files Browse the repository at this point in the history
* OpenAI lib v4 Migration
* 1.1.0
  • Loading branch information
Cerlancism authored Aug 27, 2023
1 parent 7b92943 commit 2a69fb7
Show file tree
Hide file tree
Showing 9 changed files with 309 additions and 139 deletions.
268 changes: 218 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chatgpt-subtitle-translator",
"version": "1.0.0",
"version": "1.1.0",
"description": "Translation tool based on ChatGPT API",
"main": "src/translator.mjs",
"type": "module",
Expand All @@ -10,19 +10,18 @@
"author": "Cerlancism",
"license": "MIT",
"dependencies": {
"@types/node": "^18.14.6",
"commander": "^10.0.0",
"dotenv": "^16.0.3",
"@types/node": "^20.5.6",
"commander": "^11.0.0",
"dotenv": "^16.3.1",
"gpt-3-encoder": "^1.1.4",
"openai": "^3.2.1",
"openai": "^4.3.0",
"readline": "^1.3.0",
"srt-parser-2": "^1.2.2"
"srt-parser-2": "^1.2.3"
},
"engines": {
"node": ">=16.13.0"
},
"bin": {
"chatgpt-subtitle-translator": "./cli/translator.mjs",
"subtitle-util": "./cli/subtitle.mjs"
"chatgpt-subtitle-translator": "./cli/translator.mjs"
}
}
3 changes: 0 additions & 3 deletions src/axios.mjs

This file was deleted.

Loading

0 comments on commit 2a69fb7

Please sign in to comment.