Files
llm/backend_old/ai/injector.py
2024-05-27 18:59:58 +02:00

12 lines
373 B
Python

from injector import Binder, Module, singleton
from .services.AiService import AiService
from .websocket import DashboardConnectionManager
class InjectorModule(Module):
def configure(self, binder: Binder) -> None:
self.__class__.instance = self
binder.bind(AiService, scope=singleton)
binder.bind(DashboardConnectionManager, scope=singleton)