Spaces:
Runtime error
Runtime error
File size: 1,081 Bytes
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 32 33 34 35 36 37 |
# 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
# langfuse_public_key: SecretStr # Removed
# langfuse_secret_key: SecretStr # Removed
# OpenTelemetry Collector Endpoint (for Langfuse) # Removed as it's Langfuse-specific
# otel_exporter_otlp_endpoint: HttpUrl = HttpUrl("https://cloud.langfuse.com/api/public/ingestion")
# Hugging Face Space details
space_id: str
username: str
# set_langfuse_auth method removed
|