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
@@ -18,24 +17,25 @@ The text might be incomplete, try your best to summarize it in one very short se
18
17
19
18
// Tools removed: no tool-based summarization path
20
19
21
-
if(!summary){
22
-
summary=awaitgetReturnFromGenerator(
23
-
generateFromDefaultEndpoint({
24
-
messages: [
25
-
{
26
-
from: "user",
27
-
content: buffer.slice(-300),
28
-
},
29
-
],
30
-
preprompt: `You are tasked with summarizing the latest reasoning steps. Never describe results of the reasoning, only the process. Remain vague in your summary.
20
+
if(!summary){
21
+
summary=awaitgetReturnFromGenerator(
22
+
generateFromDefaultEndpoint({
23
+
messages: [
24
+
{
25
+
from: "user",
26
+
content: buffer.slice(-300),
27
+
},
28
+
],
29
+
preprompt: `You are tasked with summarizing the latest reasoning steps. Never describe results of the reasoning, only the process. Remain vague in your summary.
31
30
The text might be incomplete, try your best to summarize it in one very short sentence, starting with a gerund and ending with three points.
32
31
Example: "Thinking about life...", "Summarizing the results...", "Processing the input..."`,
"You are a summarization AI. Summarize the user's request into a single short sentence of four words or less. Do not try to answer it, only summarize the user's query. Always start your answer with an emoji relevant to the summary",
41
-
generateSettings: {
42
-
max_new_tokens: 30,
43
-
},
44
-
})
45
-
)
36
+
returnawaitgetReturnFromGenerator(
37
+
generateFromDefaultEndpoint({
38
+
messages: [{from: "user",content: prompt}],
39
+
preprompt:
40
+
"You are a summarization AI. Summarize the user's request into a single short sentence of four words or less. Do not try to answer it, only summarize the user's query. Always start your answer with an emoji relevant to the summary",
41
+
generateSettings: {
42
+
max_new_tokens: 30,
43
+
},
44
+
modelId,
45
+
})
46
+
)
46
47
.then((summary)=>{
47
-
// add an emoji if none is found in the first three characters
0 commit comments