mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
added a token counting endpoint, set mmq as default
This commit is contained in:
parent
81a0ef342c
commit
b95a4ccb22
5 changed files with 72 additions and 28 deletions
|
@ -240,4 +240,10 @@ extern "C"
|
|||
bool abort_generate() {
|
||||
return gpttype_generate_abort();
|
||||
}
|
||||
|
||||
int token_count(const char * input)
|
||||
{
|
||||
std::string inputstr = input;
|
||||
return gpttype_token_count(inputstr);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue