feat: Initial commit of LLM Tool Proxy
This commit is contained in:
17
app/core/config.py
Normal file
17
app/core/config.py
Normal 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"),
|
||||
)
|
||||
Reference in New Issue
Block a user