-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
52 lines (42 loc) · 1.31 KB
/
setup.sh
File metadata and controls
52 lines (42 loc) · 1.31 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
#!/bin/bash
# Colors for output
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
# Function to print status messages
print_status() {
echo -e "${GREEN}[*]${NC} $1"
}
print_warning() {
echo -e "${YELLOW}[!]${NC} $1"
}
# Main setup process
main() {
print_status "Starting MultiLLM Proxy setup..."
# Create virtual environment
print_status "Setting up Python virtual environment..."
python -m venv venv
source venv/bin/activate
# Install dependencies
print_status "Installing Python dependencies..."
pip install --upgrade pip
pip install -r requirements.txt
# Create necessary directories
print_status "Creating necessary directories..."
mkdir -p static/css static/js templates
# Setup environment variables
print_status "Setting up environment variables..."
if [ ! -f ".env" ]; then
cp .env.example .env
print_status "Created .env file from example"
print_warning "Please edit .env file with your API keys"
else
print_warning ".env file already exists, skipping creation"
fi
print_status "Setup completed successfully!"
print_warning "Next steps:"
echo "1. Edit the .env file with your API keys"
echo "2. Start the application with 'python app.py'"
}
# Run main setup
main