Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

Return Correct Prompt Eval Count Regardless of Cache Prompt (#5371)

royjhan3b5a4a77f3a1
diff --git a/llm/ext_server/server.cpp b/llm/ext_server/server.cpp
index 3bc012521..099705998 100644
--- a/llm/ext_server/server.cpp
+++ b/llm/ext_server/server.cpp
@@ -1732,7 +1732,7 @@ struct llama_server_context
slot.n_past -= 1;
}
- slot.n_prompt_tokens_processed = slot.n_prompt_tokens - slot.n_past;
+ slot.n_prompt_tokens_processed = slot.n_prompt_tokens;
if (slot.ga_n != 1)
{