Spaces:
Sleeping
Sleeping
File size: 608 Bytes
ad6dc26 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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
|