Sarah Ciston
commited on
Commit
·
12c633b
1
Parent(s):
2f79610
fix stupid typo: left off message in request
Browse files
sketch.js
CHANGED
@@ -182,8 +182,7 @@ async function runModel(PREPROMPT, PROMPT){
|
|
182 |
// Chat completion API
|
183 |
const out = await inference.chatCompletion({
|
184 |
model: MODELNAME,
|
185 |
-
|
186 |
-
// messages: [{ role: "user", content: PREPROMPT + PROMPT }],
|
187 |
max_tokens: 100
|
188 |
});
|
189 |
|
|
|
182 |
// Chat completion API
|
183 |
const out = await inference.chatCompletion({
|
184 |
model: MODELNAME,
|
185 |
+
messages: [{ role: "user", content: PREPROMPT + PROMPT }],
|
|
|
186 |
max_tokens: 100
|
187 |
});
|
188 |
|