Switch explorer AI provider to Grok
This commit is contained in:
@@ -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`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user