mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00

Co-authored-by: Charles Packer <packercharles@gmail.com> Co-authored-by: Shubham Naik <shubham.naik10@gmail.com> Co-authored-by: Shubham Naik <shub@memgpt.ai>
33 lines
853 B
Python
33 lines
853 B
Python
# see https://github.com/jmorganca/ollama/blob/main/docs/api.md
|
|
# and https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values
|
|
SIMPLE = {
|
|
"options": {
|
|
"stop": [
|
|
"\nUSER:",
|
|
"\nASSISTANT:",
|
|
"\nFUNCTION RETURN:",
|
|
"\nUSER",
|
|
"\nASSISTANT",
|
|
"\nFUNCTION RETURN",
|
|
"\nFUNCTION",
|
|
"\nFUNC",
|
|
"<|im_start|>",
|
|
"<|im_end|>",
|
|
"<|im_sep|>",
|
|
# '\n' +
|
|
# '</s>',
|
|
# '<|',
|
|
# '\n#',
|
|
# '\n\n\n',
|
|
],
|
|
# "num_ctx": LLM_MAX_TOKENS,
|
|
},
|
|
"stream": False,
|
|
# turn off Ollama's own prompt formatting
|
|
"system": "",
|
|
"template": "{{ .Prompt }}",
|
|
# "system": None,
|
|
# "template": None,
|
|
"context": None,
|
|
}
|