fix un-escaped special char in regex match string
This commit is contained in:
parent
f0d56bebd2
commit
3b04085ad1
|
@ -65,7 +65,7 @@ return {
|
||||||
return '<fim_prefix>' .. prefix .. '<fim_suffix>' .. suffix .. '<fim_middle>'
|
return '<fim_prefix>' .. prefix .. '<fim_suffix>' .. suffix .. '<fim_middle>'
|
||||||
elseif model:match '^codestral' then
|
elseif model:match '^codestral' then
|
||||||
return '[SUFFIX]' .. suffix .. '[PREFIX]' .. prefix
|
return '[SUFFIX]' .. suffix .. '[PREFIX]' .. prefix
|
||||||
elseif model:match '^deepseek-coder' then
|
elseif model:match '^deepseek%-coder' then
|
||||||
return '<|fim▁begin|>' .. prefix .. '<|fim▁hole|>' .. suffix .. '<|fim▁end|>'
|
return '<|fim▁begin|>' .. prefix .. '<|fim▁hole|>' .. suffix .. '<|fim▁end|>'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue