Update code.gs
Browse filesMoved the [/INST] tag after ${prompt} in const formattedPrompt
code.gs
CHANGED
|
@@ -43,7 +43,7 @@ function queryHuggingFace(prompt, model = DEFAULT_MODEL, systemPrompt = DEFAULT_
|
|
| 43 |
throw new Error('Please enter your Hugging Face API key using the menu.');
|
| 44 |
}
|
| 45 |
|
| 46 |
-
const formattedPrompt = `<s> [INST] ${systemPrompt} [/INST]
|
| 47 |
const payload = {
|
| 48 |
"inputs": formattedPrompt
|
| 49 |
};
|
|
|
|
| 43 |
throw new Error('Please enter your Hugging Face API key using the menu.');
|
| 44 |
}
|
| 45 |
|
| 46 |
+
const formattedPrompt = `<s> [INST] ${systemPrompt} ${prompt} [/INST] </s>`;
|
| 47 |
const payload = {
|
| 48 |
"inputs": formattedPrompt
|
| 49 |
};
|