File size: 894 Bytes
e418416
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
from pydantic_settings import BaseSettings


class Settings(BaseSettings):
    mercado_publico_ticket: str | None = "99B4CA8C-C1DF-4E3F-B5CF-C1672D432A91"
    gemini_api_key: str | None = None
    gemini_model: str = "gemini-2.5-flash"
    featherless_api_key: str | None = None
    groq_api_key: str | None = None
    next_public_api_base: str | None = None
    database_url: str | None = None

    class Config:
        env_file = ".env"
        env_file_encoding = "utf-8"
        extra = "ignore"


settings = Settings()

# Debug: Verify keys are loaded (Masked)
print("--- ENVIRONMENT CONFIG CHECK ---")
print(f"GEMINI_API_KEY: {'LOADED' if settings.gemini_api_key else 'MISSING'}")
print(f"GROQ_API_KEY: {'LOADED' if settings.groq_api_key else 'MISSING'}")
print(f"FEATHERLESS_API_KEY: {'LOADED' if settings.featherless_api_key else 'MISSING'}")
print("--------------------------------")