mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-13 15:32:25 +00:00
fix: completion prompt template for Deepseek Coder (#387)
* fix: completion prompt template for Deepseek Coder * Add stop token
This commit is contained in:
parent
b972078395
commit
20c31de21d
1 changed files with 2 additions and 2 deletions
|
|
@ -25,10 +25,10 @@ public enum InfillPromptTemplate {
|
|||
return format("<fim_prefix>%s<fim_suffix>%s<fim_middle>", prefix, suffix);
|
||||
}
|
||||
},
|
||||
DEEPSEEK_CODER("DeepSeek Coder") {
|
||||
DEEPSEEK_CODER("DeepSeek Coder", List.of("<|EOT|>")) {
|
||||
@Override
|
||||
public String buildPrompt(String prefix, String suffix) {
|
||||
return format("<|fim_begin|>%s<|fim_hole|>%s<|fim_end|>", prefix, suffix);
|
||||
return format("<|fim▁begin|>%s<|fim▁hole|>%s<|fim▁end|>", prefix, suffix);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue