File size: 638 Bytes
d195d4f |
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 |
"""Environment configuration for Factool. """
import pydantic
class FactoolEnvConfig(pydantic.BaseSettings, frozen=True):
"""Environment configuration for Factool."""
openai_api_key: str = pydantic.Field(
default=None,
env="OPENAI_API_KEY",
description="API key for OpenAI",
)
serper_api_key: str = pydantic.Field(
default=None,
env="SERPER_API_KEY",
description="Key for Serper",
)
scraper_api_key: str = pydantic.Field(
default=None,
env="SCRAPER_API_KEY",
description="Key for Scraper",
)
factool_env_config = FactoolEnvConfig()
|