Spaces:
Sleeping
Sleeping
| from pydantic import SecretStr | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| from dotenv import load_dotenv, find_dotenv | |
| load_dotenv(find_dotenv()) # Load environment variables from .env file | |
| DEFAULT_MCP_URL = "https://order-mcp-74afyau24q-uc.a.run.app/mcp" | |
| DEFAULT_MODEL = "gpt-4o-mini" | |
| class Config(BaseSettings): | |
| model_config = SettingsConfigDict( | |
| env_file=".env", | |
| env_file_encoding="utf-8", | |
| case_sensitive=False, | |
| extra="ignore", | |
| ) | |
| openai_api_key: SecretStr | |
| mcp_server_url: str = DEFAULT_MCP_URL | |
| openai_model: str = DEFAULT_MODEL | |