We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3a673 commit 45a280dCopy full SHA for 45a280d
tools/server/server.cpp
@@ -4226,7 +4226,7 @@ struct server_context {
4226
metrics.on_prompt_eval(slot);
4227
}
4228
4229
- slot.t_token_generation = (t_current - slot.t_start_generation) / 1e3;
+ slot.t_token_generation = std::max<int64_t>(1, t_current - slot.t_start_generation) / 1e3;
4230
4231
completion_token_output result;
4232
result.tok = id;
0 commit comments