Skip to content

Commit

Permalink
fix: typo in addtion to addition (openai-translator#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
liby authored Mar 4, 2023
1 parent 79c5ae4 commit 81ea223
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function translate(query, completion) {
error: {
type: reason,
message: `接口响应错误 - ${resp.data.error.message}`,
addtion: JSON.stringify(resp),
addition: JSON.stringify(resp),
},
});
} else {
Expand Down Expand Up @@ -116,7 +116,7 @@ function translate(query, completion) {
error: {
type: err._type || "unknown",
message: err._message || "未知错误",
addtion: err._addtion,
addition: err._addition,
},
});
});
Expand Down

0 comments on commit 81ea223

Please sign in to comment.