Revert "Deprecated max_token to max-completion_tokens"
All checks were successful
Build static content / build (push) Successful in 7m54s

This reverts commit 9dd4d99e54.
This commit is contained in:
2024-12-08 17:04:28 +08:00
parent 9dd4d99e54
commit 626f406711

View File

@@ -231,7 +231,7 @@ class Chat {
body["top_p"] = this.top_p;
}
if (this.enable_max_gen_tokens) {
body["max_completion_tokens"] = this.max_gen_tokens;
body["max_tokens"] = this.max_gen_tokens;
}
if (this.json_mode) {
body["response_format"] = {