Fixed auto approver
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from aiohttp import web
|
||||
import asyncio
|
||||
import mimetypes
|
||||
|
||||
from .auto_approver import AutoApprover
|
||||
from .config import Config
|
||||
from .hf_llm_engine import HfLlmEngine
|
||||
from .iteration_logger import IterationLogger
|
||||
@@ -10,11 +10,11 @@ from .mistral_llm_engine import MistralLlmEngine
|
||||
from .openai_llm_engine import OpenAILlmEngine
|
||||
from .response_parser import ResponseParser
|
||||
from .system_metrics import SystemMetrics
|
||||
from .web_agent import WebAgent
|
||||
from .web_io_buffer import WebIOBuffer
|
||||
from .web.api import Api
|
||||
from .web.static import Static
|
||||
from .web.websockts import Websockets
|
||||
from .web_agent import WebAgent
|
||||
from .web_io_buffer import WebIOBuffer
|
||||
from .working_memory import WorkingMemory
|
||||
from .xml_validator import XMLValidator
|
||||
|
||||
@@ -74,10 +74,11 @@ class Main:
|
||||
parser=ResponseParser(self._io_buffer),
|
||||
iteration_logger=IterationLogger(self._config.iterations_dir, self._system_prompt, self._action_schema),
|
||||
)
|
||||
self._auto_approver = AutoApprover(self._agent)
|
||||
|
||||
self._app = web.Application()
|
||||
self._api = Api(self._app, self._agent, self._io_buffer)
|
||||
self._websockets = Websockets(self._app, self._agent, self._io_buffer)
|
||||
self._api = Api(self._app, self._agent, self._io_buffer, self._auto_approver)
|
||||
self._websockets = Websockets(self._app, self._agent, self._io_buffer, self._auto_approver)
|
||||
self._static = Static(self._app, self._config)
|
||||
|
||||
return self
|
||||
|
||||
Reference in New Issue
Block a user