This commit is contained in:
Slipstream 2025-04-26 22:52:43 -06:00
parent 763b3c8c77
commit d40617d22d
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,7 @@ from typing import Dict, List, Any, Optional, Tuple, Union # Added Union
from tavily import TavilyClient
from asteval import Interpreter
import docker
import docker.aio
import aiodocker # Use aiodocker for async operations
# Relative imports from within the gurt package and parent
from .memory import MemoryManager # Import from local memory.py
@ -583,7 +583,7 @@ async def run_terminal_command(cog: commands.Cog, command: str) -> Dict[str, Any
client = None
try:
client = docker.aio.from_env()
client = aiodocker.Docker() # Use aiodocker client
print(f"Running command in Docker ({DOCKER_EXEC_IMAGE})...")
output_bytes = await asyncio.wait_for(
client.containers.run(

View File

@ -26,3 +26,4 @@ chromadb
sentence-transformers
asteval
docker
aiodocker