-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
47 lines (41 loc) · 1.06 KB
/
run.bat
File metadata and controls
47 lines (41 loc) · 1.06 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
@echo off
echo Starting ChatGPT Clone with DeepSeek API...
echo.
REM Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Error: Python is not installed or not in PATH
echo Please install Python 3.8 or higher
pause
exit /b 1
)
REM Check if requirements are installed
echo Checking dependencies...
pip show fastapi >nul 2>&1
if errorlevel 1 (
echo Installing dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo Error: Failed to install dependencies
pause
exit /b 1
)
)
REM Check if .env file exists and has API key
if not exist ".env" (
echo Error: .env file not found
echo Please create a .env file with your DeepSeek API key
pause
exit /b 1
)
findstr /c:"your_deepseek_api_key_here" .env >nul
if not errorlevel 1 (
echo Warning: Please update your DeepSeek API key in the .env file
echo Current key is still the placeholder value
pause
)
echo.
echo Starting server at http://localhost:8000
echo Press Ctrl+C to stop the server
echo.
python main.py