Spaces:
Sleeping
Sleeping
Stephen Zweibel
Add initial implementation of FormatReview tool with core features and configurations
bb869fd
from dotenv import load_dotenv | |
load_dotenv() | |
import os | |
import logging | |
from pydantic import BaseModel | |
from typing import Optional | |
# Logging configuration | |
logging.basicConfig( | |
level=logging.INFO, | |
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", | |
handlers=[ | |
logging.FileHandler("formatreview.log"), | |
logging.StreamHandler() | |
] | |
) | |
class Settings(BaseModel): | |
"""Application settings""" | |
llm_provider: str = os.getenv("LLM_PROVIDER", "openrouter").lower() | |
llm_model_name: str = os.getenv("LLM_MODEL_NAME", "google/gemini-2.5-pro") | |
llm_base_url: str = os.getenv("LLM_API_BASE", "https://openrouter.ai/api/v1") | |
openrouter_api_key: Optional[str] = os.getenv("OPENROUTER_API_KEY") | |
# Instantiate settings | |
settings = Settings() | |