Deprecated max_token to max-completion_tokens
This commit is contained in:
@@ -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"] = {
|
||||
|
||||
Reference in New Issue
Block a user