SF LLM Gateway
Salesforce LLM Gateway provider with model discovery
What it does
Complete Pi Provider for the Salesforce LLM Gateway. Pi-owned credential persistence and model storage, authenticated dynamic discovery with offline cache restore, provider-neutral mixed-API dispatch, optional dedicated-model compaction, explicit refresh, diagnostics, and usage status.
Start
Open the extension from its primary command:
text
/sf-llm-gatewayOpen its Manager detail or change its package state with:
text
/sf-pi open sf-llm-gateway
/sf-pi enable sf-llm-gateway
/sf-pi disable sf-llm-gatewaySafety notes
- API-key input uses SF Pi's shared fixed-mask component and never enters Pi's visible stock prompt.
- Pi alone persists/removes active credentials; setup and import paths write no secrets.
- Extension config stores only non-secret settings; credentials remain Pi-owned.
- Dedicated compaction accepts only authenticated sf-llm-gateway models, never changes the chat model, and falls back to Pi.
- Sentinel-only empty access clears stale selectable models; ambiguous discovery failures retain the last-known catalog.
- Recognized request failures are replaced with bounded guidance without echoing raw provider bodies.
- Pi's settings.json is mutated through pi-settings.ts helpers with race-aware reads.
Exact reference
Show commands, tools, providers, and hooks
- Extension id:
sf-llm-gateway - Intent: Personalize pi
- Category: Provider
- Maturity: stable
- Default state: on
- Commands:
/sf-llm-gateway - LLM tools: none
- Providers:
sf-llm-gateway - Events/hooks:
session_start,message_end,session_before_compact,turn_end,model_select,after_provider_response,session_shutdown
For contributors
Troubleshooting
See the Troubleshooting section in the full README for extension-specific recovery steps.