From cb53e1833e1611685506e64fe49e648759243e4a Mon Sep 17 00:00:00 2001 From: Alfred Nutile Date: Sat, 13 Apr 2024 21:25:50 -0400 Subject: [PATCH] Modules working locally --- Modules/LlmDriver/app/Helpers/JobMiddlewareTrait.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/LlmDriver/app/Helpers/JobMiddlewareTrait.php b/Modules/LlmDriver/app/Helpers/JobMiddlewareTrait.php index 4a0f7497..d181b14e 100644 --- a/Modules/LlmDriver/app/Helpers/JobMiddlewareTrait.php +++ b/Modules/LlmDriver/app/Helpers/JobMiddlewareTrait.php @@ -12,6 +12,13 @@ public function driverMiddleware(HasDrivers $hasDrivers): array { $defaults = []; + /** + * @NOTE + * basically Ollama can only handle one job + * at a time from what I can tell right now. + * So this prevents to many jobs hitting + * it at once + */ if (LlmDriverFacade::driver($hasDrivers->getDriver())->isAsync()) { return $defaults; }