agentic-system / startup.sh
Cascade Bot
Added Groq streaming support and optimizations - clean version
1d75522
raw
history blame
872 Bytes
#!/bin/bash
# Exit on error
set -e
echo "Starting initialization..."
# Update pip and install dependencies
echo "Updating pip and installing dependencies..."
python -m pip install --upgrade pip
pip install -r requirements.txt
# Install Groq SDK
pip install groq>=0.4.1
# Verify API keys and connectivity
echo "Verifying package versions..."
python check_versions.py
if [ $? -ne 0 ]; then
echo "Error: Package version verification failed"
exit 1
fi
# Configure environment
if [ -z "$GROQ_API_KEY" ]; then
echo "Warning: GROQ_API_KEY not set. Falling back to local models."
export MODEL_BACKEND=huggingface
fi
if [ -z "$HUGGINGFACE_TOKEN" ]; then
echo "Warning: HUGGINGFACE_TOKEN not set. Some features may be limited."
fi
# Start the application
echo "Starting Advanced Agentic System..."
export PYTHONPATH="${PYTHONPATH}:${PWD}"
python main.py