From fe1047334cdf9ba03dd98a560061f88f0501487d Mon Sep 17 00:00:00 2001 From: synw Date: Tue, 25 Jun 2024 21:12:47 +0200 Subject: [PATCH] Add the Deepseek v2 template --- package.json | 2 +- src/db.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1c4a739..dfd3dc4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "modprompt", - "version": "0.7.3", + "version": "0.7.4", "description": "Prompt templates for language models", "license": "MIT", "scripts": { diff --git a/src/db.ts b/src/db.ts index 729ec34..7a1bf5c 100644 --- a/src/db.ts +++ b/src/db.ts @@ -251,6 +251,20 @@ const templates: Record = { }, "stop": ["<|EOT|>", "### Instruction:"] }, + "deepseek2": { + "id": "deepseek2", + "name": "Deepseek v2", + "system": { + "schema": "<|begin▁of▁sentence|>{system}", + }, + "user": "User: {prompt}", + "assistant": "Assistant:", + "linebreaks": { + "user": 2, + "system": 2, + }, + "stop": ["<|end▁of▁sentence|>"] + }, "opencodeinterpreter": { "id": "opencodeinterpreter", "name": "Open code interpreter",