feat: implement AI model API proxy service

This commit is contained in:
2026-03-11 18:22:16 +08:00
commit 26738973bd
33 changed files with 4607 additions and 0 deletions

21
backend/app/config.py Normal file
View File

@@ -0,0 +1,21 @@
"""Application configuration."""
from pathlib import Path
# Database
DB_PATH = Path(__file__).parent.parent / "data" / "zzrouter.db"
# Server
HOST = "0.0.0.0"
PORT = 8000
# Logging
LOG_BATCH_SIZE = 100
LOG_FLUSH_INTERVAL = 1.0 # seconds
# Model routing
MODEL_PROVIDER_MAP = {
"gpt": "openai",
"o1": "openai",
"o3": "openai",
"claude": "anthropic",
}