mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-17 04:19:40 +00:00
added stop reason in the perf endpoint
This commit is contained in:
parent
910744e2c0
commit
280abaf029
4 changed files with 18 additions and 1 deletions
|
@ -229,6 +229,9 @@ extern "C"
|
|||
int get_last_token_count() {
|
||||
return last_token_count;
|
||||
}
|
||||
int get_last_stop_reason() {
|
||||
return (int)last_stop_reason;
|
||||
}
|
||||
|
||||
const char* get_pending_output() {
|
||||
return gpttype_get_pending_output().c_str();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue