给ollama增加system message

This commit is contained in:
mcz
2024-09-30 16:41:58 +08:00
parent 37facdc3c1
commit 71f90b36ca
3 changed files with 34 additions and 4 deletions

View File

@@ -537,8 +537,9 @@ const defaultOpenaiApi = {
const defaultOllamaApi = {
url: "http://localhost:11434/api/generate",
key: "",
model: "llama3",
prompt: `Translate the following text from ${INPUT_PLACE_FROM} to ${INPUT_PLACE_TO}:\n\n${INPUT_PLACE_TEXT}`,
model: "llama3.1",
system:"You are a professional, authentic machine translation engine.",
prompt: `Translate the following text from ${INPUT_PLACE_FROM} to ${INPUT_PLACE_TO},output translation directly without any additional text:\n\n${INPUT_PLACE_TEXT}`,
fetchLimit: 1,
fetchInterval: 500,
};