]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
main : escape prompt for cfg_negative_prompt and consecutive inputs in main with...
authorvvhg1 <redacted>
Sun, 22 Oct 2023 18:09:51 +0000 (20:09 +0200)
committerGitHub <redacted>
Sun, 22 Oct 2023 18:09:51 +0000 (21:09 +0300)
commitd3956aea53369455008159cc405ed4c496976692
treea081c76c66362d64fc28efa422bf97f58af2a244
parent22c69a27945e7acf9690dd3210d316f22182751c
main : escape prompt for cfg_negative_prompt and consecutive inputs in main with interactive (#3623)

* infill tokens correction

* serverinfill tokens correction

* removing any leading whitespace from infill suffix and removing leeading space token from suffix when params.escape

* removing any leading whitespace from infill suffix and removing leeading space token from suffix when params.escape

* only rm when params.escape, rm space if possible which is added back or rm added space token

* only rm when params.escape, rm space if possible which is added back or rm added space token

* Revert "only rm when params.escape, rm space if possible which is added back or rm added space token"

This reverts commit 63ba0b621f21077c0e3bc6ba6a327534123cb738.

* fix interactive prompt escaping and fix server infill leading space handling

* rm unnecessary bool check

* process escapes for neg prompt and interactive consec prompts

* removed unneccessary static string escape
common/common.cpp
examples/main/main.cpp