Revert "Deprecated max_token to max-completion_tokens"
All checks were successful
Build static content / build (push) Successful in 7m54s
All checks were successful
Build static content / build (push) Successful in 7m54s
This reverts commit 9dd4d99e54.
This commit is contained in:
@@ -231,7 +231,7 @@ class Chat {
|
|||||||
body["top_p"] = this.top_p;
|
body["top_p"] = this.top_p;
|
||||||
}
|
}
|
||||||
if (this.enable_max_gen_tokens) {
|
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) {
|
if (this.json_mode) {
|
||||||
body["response_format"] = {
|
body["response_format"] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user