feat: implement AI model API proxy service
This commit is contained in:
21
backend/app/config.py
Normal file
21
backend/app/config.py
Normal 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",
|
||||
}
|
||||
Reference in New Issue
Block a user