Spaces:
Runtime error
Runtime error
# 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 | |