Skip to content

Commit

Permalink
update cli
Browse files Browse the repository at this point in the history
  • Loading branch information
rbren committed Dec 24, 2024
1 parent 4b497c8 commit 749da63
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions openhands/core/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
NullObservation,
)
from openhands.llm.llm import LLM
from openhands.runtime import get_runtime_cls
from openhands.runtime.base import Runtime
from openhands.runtime.runtime_manager import RuntimeManager
from openhands.security import SecurityAnalyzer, options
from openhands.storage import get_file_store

Expand Down Expand Up @@ -125,9 +125,8 @@ async def main():
file_store = get_file_store(config.file_store, config.file_store_path)
event_stream = EventStream(sid, file_store)

runtime_cls = get_runtime_cls(config.runtime)
runtime: Runtime = runtime_cls( # noqa: F841
config=config,
runtime_manager = RuntimeManager(config)
runtime: Runtime = await runtime_manager.create_runtime(
event_stream=event_stream,
sid=sid,
plugins=agent_cls.sandbox_plugins,
Expand Down

0 comments on commit 749da63

Please sign in to comment.