mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-13 02:10:39 +02:00
ollama sync completions mostly working. stupid api.
This commit is contained in:
@@ -2533,6 +2533,10 @@ std::string gpttype_detokenize(const std::vector<int> & inputids, bool render_sp
|
||||
std::string output = "";
|
||||
for (auto eid : inputids)
|
||||
{
|
||||
if(eid<0 || eid>=n_vocab)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
std::string tokenizedstr = FileFormatTokenizeID(eid, file_format, render_special);
|
||||
output += tokenizedstr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user