add prompt prefill
Browse files- src/utils/model.ts +2 -2
src/utils/model.ts
CHANGED
@@ -33,7 +33,7 @@ export async function feedTopic(
|
|
33 |
}
|
34 |
}, {noLeading: true, noTrailing: false, debounceMode: false});
|
35 |
|
36 |
-
let buffer = "";
|
37 |
for await (const tokens of fetcher("", settings, log)) {
|
38 |
// console.log(".");
|
39 |
buffer += tokens;
|
@@ -186,4 +186,4 @@ function tokenizePost(post: Post, poster: string): string {
|
|
186 |
];
|
187 |
|
188 |
return lines.join("\n");
|
189 |
-
}
|
|
|
33 |
}
|
34 |
}, {noLeading: true, noTrailing: false, debounceMode: false});
|
35 |
|
36 |
+
let buffer = "<|start_header_id|><|sujet|><|end_header_id|>\n\nSujet : \"";
|
37 |
for await (const tokens of fetcher("", settings, log)) {
|
38 |
// console.log(".");
|
39 |
buffer += tokens;
|
|
|
186 |
];
|
187 |
|
188 |
return lines.join("\n");
|
189 |
+
}
|