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:
parent
fb6eb90783
commit
c752261465
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue