From 0a441a1d41db6025abbb19b22f5b58c77f19567d Mon Sep 17 00:00:00 2001 From: pancake Date: Thu, 21 Nov 2024 17:11:07 +0100 Subject: [PATCH] Support o1 models in decai --- decai/decai.r2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/decai/decai.r2.js b/decai/decai.r2.js index d8c2770..74fd235 100644 --- a/decai/decai.r2.js +++ b/decai/decai.r2.js @@ -278,7 +278,8 @@ You can write your custom decai commands in your ~/.radare2rc file. const query = hideprompt? msg: decprompt + ", Output in " + decaiLanguage + " language\n" + msg; const payload = JSON.stringify({ model: openaiModel, - max_tokens: 5128, + // max_tokens: 5128, + max_completion_tokens: 5128, // make this configurable or depend on model, o1 supports more than 8K messages: [ // { "role": "system", "content": hideprompt? decprompt: "" }, { "role": "user", "content": query }