Spaces:
Sleeping
Sleeping
File size: 655 Bytes
807b59f 7d2a2eb 807b59f 7d2a2eb 807b59f 7d2a2eb 807b59f 7d2a2eb 807b59f 7d2a2eb 807b59f 7d2a2eb 807b59f | 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 | # app/config.py
from pydantic_settings import BaseSettings
class Settings(BaseSettings):
# OpenAI Configuration (Required)
OPENAI_API_KEY: str
# Database Configuration (Required)
NEON_DATABASE_URL: str
# Qdrant Vector Database (Required)
QDRANT_URL: str
QDRANT_API_KEY: str
# OpenAI Model Configuration (Optional - defaults provided)
OPENAI_MODEL_CHAT: str = "gpt-4o-mini"
OPENAI_MODEL_EMBEDDING: str = "text-embedding-3-small"
class Config:
env_file = ".env"
env_file_encoding = 'utf-8'
extra = "ignore" # Ignore extra env vars like legacy gemini_api_key
settings = Settings()
|