Skip to content

Commit

Permalink
Minor fix in deepseek2 template
Browse files Browse the repository at this point in the history
- Updated package version to 0.7.6 in package.json
- Added new stop token "<|tool▁calls▁end|>" to db.ts
  • Loading branch information
synw committed Aug 27, 2024
1 parent 811c46b commit 214e706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modprompt",
"version": "0.7.4",
"version": "0.7.6",
"description": "Prompt templates for language models",
"license": "MIT",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions src/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const templates: Record<string, LmTemplate> = {
"user": 2,
"system": 2,
},
"stop": ["<|end▁of▁sentence|>"]
"stop": ["<|end▁of▁sentence|>", "<|tool▁calls▁end|>"]
},
"opencodeinterpreter": {
"id": "opencodeinterpreter",
Expand Down Expand Up @@ -311,7 +311,6 @@ const templates: Record<string, LmTemplate> = {
"name": "Llama 3",
"user": "<|start_header_id|>user<|end_header_id|>\n\n{prompt}<|eot_id|>",
"assistant": "<|start_header_id|>assistant<|end_header_id|>",
"prefix": "<|begin_of_text|>",
"stop": [
"<|eot_id|>",
"<|end_of_text|>"
Expand Down

0 comments on commit 214e706

Please sign in to comment.