Skip to content

Commit

Permalink
fix: openai types
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Mar 2, 2023
1 parent c0bf83a commit 1e4ddd6
Show file tree
Hide file tree
Showing 4 changed files with 254 additions and 86 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"husky": "^8.0.2",
"lint-staged": "^13.1.2",
"npm-run-all": "^4.1.5",
"openai": "^3.2.1",
"ora": "^6.1.2",
"prettier": "^2.8.4",
"tsup": "^6.6.3",
Expand Down
66 changes: 0 additions & 66 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/chatgpt-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export class ChatGPTAPI {
}

try {
const response: types.CreateChatCompletionDeltaResponse =
const response: types.openai.CreateChatCompletionDeltaResponse =
JSON.parse(data)

if (response.id) {
Expand Down
Loading

0 comments on commit 1e4ddd6

Please sign in to comment.