-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat.bat
More file actions
67 lines (59 loc) · 1.74 KB
/
chat.bat
File metadata and controls
67 lines (59 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@echo off
REM Chat launcher for Assistant-Go on Windows
echo Checking requirements...
REM Check if Docker is installed
docker --version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Docker is not installed
echo Please install Docker Desktop from https://www.docker.com/products/docker-desktop
pause
exit /b 1
)
REM Check if Docker Compose is available
docker compose version >nul 2>&1
if errorlevel 1 (
echo [ERROR] Docker Compose is not available
echo Please update Docker Desktop to the latest version
pause
exit /b 1
)
REM Check if assistant.yaml exists
if not exist assistant.yaml (
echo Configuration file not found
echo.
echo Creating assistant.yaml from template...
copy assistant.yaml.example assistant.yaml >nul
echo Created assistant.yaml
echo.
echo Please edit assistant.yaml and add your API keys:
echo - claude_api_key: your-key-here
echo - gemini_api_key: your-key-here
echo.
echo Then run chat.bat again
pause
exit /b 1
)
REM Check if API keys are configured
findstr "your-claude-api-key-here your-gemini-api-key-here" assistant.yaml >nul
if not errorlevel 1 (
echo API keys not configured
echo.
echo Please edit assistant.yaml and add your API keys:
echo - claude_api_key: your-actual-key
echo - gemini_api_key: your-actual-key
echo.
pause
exit /b 1
)
REM Check if services are running
docker compose ps --services --filter "status=running" 2>nul | findstr assistant >nul
if errorlevel 1 (
echo Starting Assistant services...
docker compose up -d
echo Waiting for services to start...
timeout /t 5 >nul
)
REM Launch the chat interface
echo Connecting to Assistant...
echo.
docker compose exec assistant ./assistant