fdaudens HF staff commited on
Commit
ba2fb19
1 Parent(s): ea14971

Update code.gs

Browse files

Moved the [/INST] tag after ${prompt} in const formattedPrompt

Files changed (1) hide show
  1. code.gs +1 -1
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] ${prompt} </s>`;
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
  };