Spaces:
Runtime error
Runtime error
Download config.py from pvanand/specialized-agents-api: direct link, hf CLI and curl.
- Browser
- Download file 357 Bytes
-
https://huggingface.co/spaces/pvanand/specialized-agents-api/resolve/main/config.py
- Command line
-
hf download hf://spaces/pvanand/specialized-agents-api/config.py
-
curl -L -o config.py https://huggingface.co/spaces/pvanand/specialized-agents-api/resolve/main/config.py
357 Bytes
| import os | |
| from functools import lru_cache | |
| API_KEY_NAME = "X-API-Key" | |
| API_KEY = os.environ.get("CHAT_AUTH_KEY", "default_secret_key") | |
| def get_api_keys(): | |
| return { | |
| "OPENROUTER_API_KEY": f"sk-or-v1-{os.environ['OPENROUTER_API_KEY']}", | |
| "BRAVE_API_KEY": os.environ['BRAVE_API_KEY'] | |
| } | |
| DB_PATH = '/app/data/conversations.db' |