-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart_api.py
More file actions
executable file
·33 lines (28 loc) · 954 Bytes
/
Copy pathstart_api.py
File metadata and controls
executable file
·33 lines (28 loc) · 954 Bytes
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
#!/usr/bin/env python3
"""
ReqRev API Startup Script
Quick way to start the API server with proper configuration.
"""
import sys
import os
# Add project root to path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
if __name__ == "__main__":
import uvicorn
from api.config import settings
print("=" * 60)
print("🚀 Starting ReqRev API Server")
print("=" * 60)
print(f"🤖 LLM Provider: OpenAI")
print(f"📊 Model: {settings.OPENAI_MODEL}")
print(f"🌐 API URL: http://{settings.API_HOST}:{settings.API_PORT}")
print(f"📚 API Docs: http://{settings.API_HOST}:{settings.API_PORT}/docs")
print(f"🔍 Health Check: http://{settings.API_HOST}:{settings.API_PORT}/health")
print("=" * 60)
uvicorn.run(
"api.main:app",
host=settings.API_HOST,
port=settings.API_PORT,
reload=settings.API_RELOAD,
log_level=settings.LOG_LEVEL.lower()
)