Switch explorer AI provider to Grok

This commit is contained in:
defiQUG
2026-03-27 16:51:04 -07:00
parent d0964904d6
commit c1fe6ec6e3
3 changed files with 74 additions and 91 deletions

View File

@@ -214,15 +214,15 @@ Use the dedicated deployment script when you need to:
- refresh `/opt/explorer-ai-docs`
- ensure a real `JWT_SECRET`
- install or refresh the explorer database override used for AI indexed context
- optionally install `OPENAI_API_KEY`
- optionally install `XAI_API_KEY`
- normalize nginx for `/explorer-api/v1/*`
```bash
cd /path/to/explorer-monorepo
OPENAI_API_KEY=... bash scripts/deploy-explorer-ai-to-vmid5000.sh
XAI_API_KEY=... bash scripts/deploy-explorer-ai-to-vmid5000.sh
```
If `OPENAI_API_KEY` is omitted, the AI context endpoint will still work, but chat will remain disabled with a backend `service_unavailable` response.
If `XAI_API_KEY` is omitted, the AI context endpoint will still work, but chat will remain disabled with a backend `service_unavailable` response.
On VMID `5000`, the script also writes a dedicated `database.conf` drop-in for `explorer-config-api` so AI context can query the live Blockscout Postgres container instead of assuming `localhost:5432`.