Skip to content

Commit

Permalink
concurrent executors
Browse files Browse the repository at this point in the history
  • Loading branch information
reiid00 committed Oct 24, 2023
1 parent 3b43959 commit a4968e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llmstudio/engine/providers/base_provider.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import ABC

from concurrent.futures import ThreadPoolExecutor

class BaseProvider(ABC):
"""
Expand All @@ -12,6 +12,7 @@ class BaseProvider(ABC):

def __init__(self):
super().__init__()
self.executor = ThreadPoolExecutor(max_workers=10)

async def chat(self, data) -> dict:
"""
Expand Down

0 comments on commit a4968e6

Please sign in to comment.