Multimodal Configuration π‘ BETA
Point the BotModels service at a reachable host, verify the multimodal keywords in the generated reference, and test one attachment end to end.
Admin guide Β· multimodal runbook
| When to use | Before you start | Steps | Verify | Roll back |
|---|---|---|---|---|
| Enabling image or voice features, after a media failure | BotModels service and credentials | Check source, set env, restart, test | Media processed, no secret logged | Restore prior env and restart |
When to use
Use this runbook when image, video, audio or document attachment handling must be enabled or debugged.
Before you start
- The BotModels service is addressed with
BOTMODELS_HOSTandBOTMODELS_API_KEY; credentials stay in Vault or the environment, never in config.csv or the repository. - Keyword spellings come from the generated BASIC reference and the keyword crates: for example
ANALYZE IMAGE,CLASSIFY IMAGE,DESCRIBE VIDEOandGENERATE VIDEOare registered underbotbasic_ai. Do not document a keyword that is not registered. - An inbound media auto-task classifies and files an attachment; when the vision service is unavailable the flow must refuse clearly rather than silently skip the attachment.
- Local model bundles and their offline verification are described in local LLM.
Steps
# 1. Confirm the registered keyword syntax from source.
grep -RIn 'ANALYZE.*IMAGE\|GENERATE.*VIDEO\|DESCRIBE.*VIDEO' \
botserver/crates/botbasic_ai/src --include='*.rs' | head -20
# 2. Check the BotModels service is reachable with the configured host.
curl -s -o /dev/null -w '%{http_code}\n' "${BOTMODELS_HOST}/health"
# 3. Read the credentials from Vault without printing them.
source <(grep -E '^VAULT_' "${WORKSPACE}/.env")
export VAULT_ADDR="$VAULT_ADDR"
export VAULT_CACERT="${WORKSPACE}/botserver-stack/conf/system/certificates/ca/ca.crt"
export VAULT_TOKEN=$(cat /tmp/vault-token-gb 2>/dev/null || echo "$VAULT_TOKEN")
# 4. Send one attachment in a chat turn and read the classification result.
# 5. If the provider was rebuilt at boot, restart the caching process.
sudo incus exec <container> -- systemctl restart botserver
curl -s -o /dev/null -w '%{http_code}\n' http://localhost:8080/health
Verify
| Check | Command / surface | Pass condition |
|---|---|---|
| Keyword | generated BASIC reference | syntax present and consumed |
| Service | curl on the BotModels host |
reachable |
| Attachment | one chat turn with an image | classified and stored |
| Fallback | vision service stopped | clear refusal, no silent skip |
| Secrets | repository search | no key or host address with an internal IP |
Roll back
π΄ Restore the previous BOTMODELS_HOST / BOTMODELS_API_KEY values and restart the caching process, then re-run the table. A failed attachment flow is not fixed by disabling the guard; record the failure under incident response.