Spaces:
Sleeping
Sleeping
Download src/config.py from ArchCoder/web3-copilot: direct link, hf CLI and curl.
- Browser
- Download file 587 Bytes
-
https://huggingface.co/spaces/ArchCoder/web3-copilot/resolve/20eee6665a2785be87dc0f0ea76e982e06e4a76a/src/config.py
- Command line
-
hf download hf://spaces/ArchCoder/web3-copilot@20eee6665a2785be87dc0f0ea76e982e06e4a76a/src/config.py
-
curl -L -o config.py https://huggingface.co/spaces/ArchCoder/web3-copilot/resolve/20eee6665a2785be87dc0f0ea76e982e06e4a76a/src/config.py
587 Bytes
| import os | |
| from dataclasses import dataclass | |
| from typing import Optional | |
| class Config: | |
| GEMINI_API_KEY: str = os.getenv("GEMINI_API_KEY", "") | |
| COINGECKO_API_KEY: Optional[str] = os.getenv("COINGECKO_API_KEY") | |
| CRYPTOCOMPARE_API_KEY: Optional[str] = os.getenv("CRYPTOCOMPARE_API_KEY") | |
| COINGECKO_BASE_URL: str = "https://api.coingecko.com/api/v3" | |
| CRYPTOCOMPARE_BASE_URL: str = "https://min-api.cryptocompare.com/data" | |
| CACHE_TTL: int = 300 | |
| RATE_LIMIT_DELAY: float = 2.0 | |
| MAX_RETRIES: int = 3 | |
| REQUEST_TIMEOUT: int = 30 | |
| config = Config() | |