You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 6, 2024. It is now read-only.
* Given a prompt and an instruction, OpenAi will return an edited version of the prompt
@@ -25,8 +23,14 @@ public class EditRequest {
25
23
* The instruction that tells the model how to edit the prompt.
26
24
* For example, "Fix the spelling mistakes"
27
25
*/
26
+
@NonNull
28
27
Stringinstruction;
29
28
29
+
/**
30
+
* How many edits to generate for the input and instruction.
31
+
*/
32
+
Integern;
33
+
30
34
/**
31
35
* What sampling temperature to use. Higher values means the model will take more risks. Try 0.9 for more creative applications, and 0 (argmax sampling) for ones with a well-defined answer.
32
36
*
@@ -39,5 +43,6 @@ public class EditRequest {
39
43
*
40
44
* We generally recommend altering this or {@link EditRequest#temperature} but not both.
0 commit comments