Skip to content

Commit

Permalink
Deprecated max_token to max-completion_tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
heimoshuiyu committed Dec 8, 2024
1 parent 5039bdf commit 9dd4d99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chatgpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class Chat {
body["top_p"] = this.top_p;
}
if (this.enable_max_gen_tokens) {
body["max_tokens"] = this.max_gen_tokens;
body["max_completion_tokens"] = this.max_gen_tokens;
}
if (this.json_mode) {
body["response_format"] = {
Expand Down

0 comments on commit 9dd4d99

Please sign in to comment.