Spaces:
Runtime error
Runtime error
File size: 763 Bytes
9137cdb 30f0618 9137cdb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# settings.py
import os
from pydantic_settings import BaseSettings, SettingsConfigDict
from pydantic import HttpUrl, SecretStr
class Settings(BaseSettings):
def __init__(self):
super().__init__()
# No Langfuse authentication setup needed here anymore
# Configure Pydantic Settings to load from .env file
model_config = SettingsConfigDict(env_file='.env')
# API Base URLs
scoring_api_base_url: HttpUrl = HttpUrl(
"https://agents-course-unit4-scoring.hf.space"
)
chess_eval_url: HttpUrl = HttpUrl(
"https://stockfish.online/api/s/v2.php"
)
# API Keys (SecretStr for security)
gemini_api_key: SecretStr
space_id: str
username: str
# set_langfuse_auth method removed
|