llm-agent-backend/run.py
dimitrievgs d27156d152 init
2025-09-12 00:26:19 +03:00

21 lines
903 B
Python

# ----------------------------------------------- Imports ------------------------------------------------------------
import os
import sys
# ----------------------------------------------- Main ------------------------------------------------------------
if __name__ == "__main__":
# Добавляем папку app в Python path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'app'))
from app.api import app2
print("🚀 Запуск LLM Agent Backend сервера...")
print("📍 API будет доступно на: http://localhost:5000/api")
print("📊 Список графов: http://localhost:5000/api/graphs")
print("💬 Чат эндпоинт: http://localhost:5000/api/chat")
print("\n⚠️ Для остановки нажмите Ctrl+C\n")
app2.run(
debug=True,
port=5000,
host='localhost'
)