1
0
Fork 0
mirror of https://gitlab.com/niansa/discord_llama.git synced 2025-03-06 20:48:25 +01:00

Handle config.max_context_age == 0 properly

This commit is contained in:
niansa 2023-05-23 08:36:53 +00:00
parent fb6eb90783
commit c752261465

View file

@ -460,7 +460,7 @@ private:
void cleanup() {
// Clean up InferencePool
llm_pool.cleanup(config.max_context_age);
if (config.max_context_age) llm_pool.cleanup(config.max_context_age);
// Reset timer
cleanup_timer.reset();
}