|
| 1 | +# Platon oracle & LLM providers |
| 2 | +# Keys can live in this file, in ~/.hermes/.env (HERMES_ENV_FILE), or host env. |
| 3 | +# Standard env names (no prefix) are preferred — same as Hermes / Alien Monitor. |
| 4 | + |
| 5 | +PLATON_PUBLIC_URL=http://78.17.126.214 |
| 6 | + |
| 7 | +# Provider selection: |
| 8 | +# auto — first available: deepseek → openai → anthropic → ollama → template |
| 9 | +# deepseek — DeepSeek only (OpenAI-compatible API) |
| 10 | +# openai — OpenAI only |
| 11 | +# anthropic — Anthropic Messages API only |
| 12 | +# ollama — local Ollama only |
| 13 | +# template — no LLM, deterministic witnesses |
| 14 | +PLATON_ORACLE_PROVIDER=auto |
| 15 | + |
| 16 | +# Cloud API keys (pick one or more for auto fallback chain) |
| 17 | +DEEPSEEK_API_KEY= |
| 18 | +OPENAI_API_KEY= |
| 19 | +ANTHROPIC_API_KEY= |
| 20 | + |
| 21 | +# Per-provider overrides (optional) |
| 22 | +PLATON_DEEPSEEK_MODEL=deepseek-chat |
| 23 | +PLATON_DEEPSEEK_BASE_URL=https://api.deepseek.com/v1 |
| 24 | +PLATON_OPENAI_MODEL=gpt-4o-mini |
| 25 | +PLATON_OPENAI_BASE_URL=https://api.openai.com/v1 |
| 26 | +PLATON_ANTHROPIC_MODEL=claude-3-5-haiku-latest |
| 27 | +PLATON_ANTHROPIC_BASE_URL=https://api.anthropic.com/v1 |
| 28 | + |
| 29 | +# Local models (Ollama, LM Studio OpenAI shim, etc.) |
| 30 | +PLATON_OLLAMA_URL=http://127.0.0.1:11434 |
| 31 | +PLATON_OLLAMA_MODEL=mistral:7b-instruct-q4_K_M |
| 32 | + |
| 33 | +# Ecosystem |
| 34 | +PLATON_ALIEN_MONITOR_WEBHOOK=http://127.0.0.1:9100/api/integrations/platon/event |
| 35 | +HERMES_ENV_FILE=/root/.hermes/.env |
| 36 | + |
| 37 | +# AIMarket hub federation (real hub: modelmarket.dev) |
| 38 | +PLATON_HUB_URL=https://modelmarket.dev |
| 39 | +# Operator-only: set on the HUB to enable /federation/announce + seed crawl. |
| 40 | +PLATON_HUB_ADMIN_TOKEN= |
| 41 | + |
| 42 | +# CORS: comma-separated origins. "*" disables credentials (CORS spec). Set |
| 43 | +# explicit origins (e.g. https://magic-ai-factory.com) to allow credentials. |
| 44 | +PLATON_CORS_ORIGINS=* |
0 commit comments