feat: Initial commit of LLM Tool Proxy

This commit is contained in:
Vertex-AI-Step-Builder
2025-12-31 06:35:08 +00:00
commit 0d14c98cf4
11 changed files with 775 additions and 0 deletions

17
app/core/config.py Normal file
View File

@@ -0,0 +1,17 @@
import os
from pydantic import BaseModel
from typing import Optional
class Settings(BaseModel):
"""Manages application settings and configurations."""
REAL_LLM_API_URL: Optional[str] = None
REAL_LLM_API_KEY: Optional[str] = None
def get_settings() -> Settings:
"""
Returns an instance of the Settings object by loading from environment variables.
"""
return Settings(
REAL_LLM_API_URL=os.getenv("REAL_LLM_API_URL"),
REAL_LLM_API_KEY=os.getenv("REAL_LLM_API_KEY"),
)