Skip to content

Commit

Permalink
Support o1 models in decai
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Nov 21, 2024
1 parent 807b37d commit 0a441a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion decai/decai.r2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 0a441a1

Please sign in to comment.