mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 17:25:07 +02:00
added a kobold API compatible implementation of stopping sequences
This commit is contained in:
+15
-1
@@ -27,7 +27,21 @@ double timer_check()
|
||||
return time_taken;
|
||||
}
|
||||
|
||||
|
||||
void print_vec(std::vector<std::string> &embd)
|
||||
{
|
||||
std::cout << "[";
|
||||
bool first = true;
|
||||
for (auto i : embd)
|
||||
{
|
||||
if (!first)
|
||||
{
|
||||
std::cout << ',';
|
||||
}
|
||||
first = false;
|
||||
std::cout << i;
|
||||
}
|
||||
std::cout << "]\n";
|
||||
}
|
||||
void print_tok_vec(std::vector<int> &embd)
|
||||
{
|
||||
std::cout << "[";
|
||||
|
||||
Reference in New Issue
Block a user