36 lines
689 B
Bash
36 lines
689 B
Bash
|
|
#!/bin/bash
|
||
|
|
#
|
||
|
|
# Start AI Orchestrator
|
||
|
|
# Starts the model orchestrator which manages all AI services
|
||
|
|
#
|
||
|
|
|
||
|
|
set -e
|
||
|
|
|
||
|
|
cd "$(dirname "$0")/.."
|
||
|
|
|
||
|
|
echo "========================================="
|
||
|
|
echo " Starting AI Orchestrator"
|
||
|
|
echo "========================================="
|
||
|
|
echo ""
|
||
|
|
|
||
|
|
# Check for .env file
|
||
|
|
if [ ! -f .env ]; then
|
||
|
|
echo "Warning: .env file not found"
|
||
|
|
echo "Copy .env.example to .env and add your configuration"
|
||
|
|
echo ""
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Source .env if it exists
|
||
|
|
if [ -f .env ]; then
|
||
|
|
set -a
|
||
|
|
source .env
|
||
|
|
set +a
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Start orchestrator
|
||
|
|
echo "Starting orchestrator on port 9000..."
|
||
|
|
python3 model-orchestrator/orchestrator_subprocess.py
|
||
|
|
|
||
|
|
echo ""
|
||
|
|
echo "Orchestrator stopped"
|