Initial PoC commit

This commit is contained in:
Fenix
2026-01-28 20:39:59 -08:00
commit 94811ca7c1
18 changed files with 1831 additions and 0 deletions

36
Server/config.py Normal file
View File

@@ -0,0 +1,36 @@
"""
Configuration settings for HTR API on Phoenix
"""
from pydantic_settings import BaseSettings
from typing import Optional
class Settings(BaseSettings):
jwt_secret: str = "JWT_SECRET=73936f5c69eb84f013a531a35ffae040855cd6c7891ed1bb0872780fe8c56274"
jwt_algorithm: str = "HS256"
# vLLM Configuration - matches your local setup
vllm_endpoint: str = "http://127.0.0.1:8001/v1/chat/completions"
vllm_model: str = "qwen3-vl" # served-model-name from vLLM
# LLM Configuration (OpenRouter or local vLLM)
llm_endpoint: str = "http://127.0.0.1:8001/v1/chat/completions"
llm_model: str = "qwen3-vl"
openrouter_api_key: Optional[str] = None
# Database
database_path: str = "/home/fenix/htr-api/htr_usage.db"
# Limits
max_image_size: int = 10 * 1024 * 1024
# WordPress
upgrade_url: str = "https://prometheuscafe.com/plans"
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
settings = Settings()