managarten/services/mana-llm/start.sh
Till-JS d605366460 feat(llm-playground): add model comparison feature
- Add modality detection (text/vision/code) to models store
- Create comparison store for parallel multi-model streaming
- Add ModelModalityFilter and ModelComparisonSelector components
- Add ComparisonResponseCard with metrics (duration, tokens, t/s)
- Add ComparisonMessageBubble for side-by-side response view
- Integrate comparison mode into ChatInput, MessageList, Sidebar
- Add dev:full script to start mana-llm + playground together
- Add start.sh script for mana-llm Python service
2026-01-31 23:30:16 +01:00

28 lines
634 B
Bash
Executable file

#!/bin/bash
# Start mana-llm service
# Automatically creates venv and installs dependencies if needed
cd "$(dirname "$0")"
# Check if venv exists, create if not
if [ ! -d "venv" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
fi
# Activate venv
source venv/bin/activate
# Install/update dependencies
pip install -q -r requirements.txt
# Copy .env if not exists
if [ ! -f ".env" ] && [ -f ".env.example" ]; then
cp .env.example .env
echo "Created .env from .env.example"
fi
# Start the service
echo "Starting mana-llm on port 3025..."
exec python -m uvicorn src.main:app --port 3025 --reload