Setyenv · Docs
  • English
  • Spanish
  • Chinese
  • Japanese
  • Arabic
  • German
  • French
  • Hindi
  • Indonesian
  • Italian
  • Dutch
  • Portuguese
  • Russian
  • Turkish

Providers

Add LLM credential

Providers are LLM endpoints the agent can call. WP-PFAgent is BYOK — you bring your own keys for each provider you want to use.

Built-in presets

Presets ship for the major LLM providers and any OpenAI-compatible endpoint. Each preset is a curated set of (provider adapter, recommended models, default parameters, capabilities). You can override any of these per provider instance.

FamilyAdapterNotes
OpenAIopenaiGPT-4o, GPT-4 Turbo, o1 series, o3-mini. Tool use + structured outputs supported.
AnthropicanthropicClaude 3.5 / Claude 3.7 / Claude 4 families. Tool use + extended thinking + prompt caching supported.
Google GeminigeminiGemini 1.5 Pro / Flash. Tool use supported.
Azure OpenAIopenai (Azure variant)Microsoft-hosted OpenAI; you specify your deployment id and base URL.
AWS BedrockbedrockMultiple models via Bedrock (Claude, Llama, Mistral). IAM-based auth.
DeepSeekopenai-compatibleAPI-compatible with OpenAI; specify base URL.
Qwenopenai-compatibleAlibaba's API.
Mimoopenai-compatible
Grok (xAI)openai-compatible
Generic OpenAI-compatibleopenai-compatibleFor anything else: Together AI, Groq, Fireworks, Cerebras, LM Studio, vLLM, etc.

Adding a provider

Setyenv → Agent → Providers → Add Provider:

  1. Pick a preset. The form auto-fills the recommended fields.
  2. Override or accept the defaults: - Label — your own name for this provider (e.g. "OpenAI prod", "OpenAI dev personal key"). - API key — the credential. Stored encrypted at rest; see Credential encryption. - Default model — which model the chat dropdown pre-selects. Override per session. - Base URL — only shown for OpenAI-compatible adapters. - Organisation ID — only shown for OpenAI when you have a multi-org account. - Deployment ID — only shown for Azure OpenAI. - Temperature / max_tokens — runtime defaults; can be overridden per session.
  3. Test connection sends a single-token probe completion to confirm the credential works.
  4. Save.

Provider health

The plugin runs a daily background probe against every configured provider and exposes the result in Setyenv → Agent → Health as one of healthy, degraded, or failing, with the last probe time, latency and (if any) the error message. This lets you spot a key that has been revoked or a provider that is degraded without waiting for a real conversation to fail.

Prompt caching

On providers that support it (e.g. Anthropic), the agent automatically marks the parts of each request that stay constant within a session — system prompt, action catalog — as cacheable. Cached input tokens are billed at a fraction of the normal rate, so a chatty session costs noticeably less after the first turn. Cache lifetime is provider-specific; the plugin schedules turns to keep the cache warm where it can.

Back-off under load

When a provider returns 429 or a Retry-After header, the agent waits the requested amount and retries with exponential back-off and jitter, capped by the turn's wall-clock budget. The chat surfaces a single inline notice rather than failing on the first 429.