Search K
Appearance
Appearance
CONTENT MIGRATION
Documentation for F5 products will soon be moving to docs.f5.com — your new home for all F5 docs.
Connect F5 AI Security Platform to a model to protect it with guardrails and test it with F5 AI Red Team. Add connections on the Connections page.
Choose a built-in provider when one matches your model. For other endpoints, define a custom connection in YAML. The platform tests each connection before it saves it. If the test fails, the platform doesn't save the connection.
This guide covers the user interface. To use the API or Python SDK, see Create a provider.
Make sure you have:
us1.calypsoai.app or eu1.calypsoai.app.The platform maintains the request format for each built-in provider.
Log in to your AI Security workspace.
Go to Connections.
On the Models tab, find your provider under Available provider connections.
On the provider tile, select Add.
In Display name, enter a name for the connection.
In Model name, enter the name exactly as your provider spells it.
The name is case-sensitive.
In API key, enter the key from your provider.
Complete the fields for your provider:
https://llm.example.com/v1/chat/completions.Optional: Set a limit for F5 AI Red Team requests. See Limit AI Red Team requests.
Select Test and connect.
If the test passes, "Configuration Saved!" appears and the connection appears under Model connections. Otherwise, see Troubleshooting.
Use a custom connection when a built-in provider doesn't match your model. The configuration defines the HTTP request and how to read the response. For examples, see Custom connection use cases.
If your endpoint uses OpenAI Chat Completions, select the OpenAI Compatible tile instead. If you need a custom connection for an OpenAI-style endpoint, start with the openai-compatible-chat example.
Log in to your AI Security workspace.
Go to Connections.
On the Models tab, select Add other providers.
In Provider name, enter a provider name or select an existing one.
The platform groups models under this name in Model connections. Use the same name for additional models from the same provider.
In Model display name, enter a name of up to 100 characters.
Select the Connection settings tab.
Optional: In Example configuration, select an example close to your endpoint.
For Amazon Bedrock, select bedrock-converse.
Optional: In Compatible API, select the format your endpoint uses.
The choices are OpenAI Chat Completions API, OpenAI Responses API, and Anthropic Messages API. Select a format only if the endpoint returns responses in exactly that format. Otherwise, leave the box empty. You can't change this choice later.
Select the YAML parameters tab.
For each nonsecret value, enter its name in Name and its value in Value.
For example, enter url and https://llm.example.com/v1/chat.
To add another value, select Add parameter.
For example, add model with the value example-model-1.
In YAML template, enter your request in YAML.
The top-level block must return statusCode, content, and error. For a sample request, see Call a JSON endpoint. For block types, fields, and expressions, see Custom connection YAML reference.
If validation issues appear, select the Errors tab to review them.
Select an authentication type after you finish the YAML template. For API Key, AWS Sig V4, Basic, Bearer, JWT, and OAuth 2.0, the platform rewrites the YAML. For these types, the platform clears entered secrets when you select a type.
Select the Connection settings tab.
In Authentication type, select the method your endpoint uses.
The list is unavailable until YAML template contains a type: request block. The table lists the values for each type. Values without a required marker appear in the last column. For YAML changes and secret names, see Authentication types.
| Authentication type | Required values | Values without a required marker |
|---|---|---|
| API Key | Value | None |
| AWS Sig V4 | Access Key, Secret Key, Service name, AWS Region | Session token |
| Basic | Username, Password | None |
| Bearer | Token | None |
| Custom | None marked | Key, Value |
| OCI | OCI Key ID, OCI Private Key | OCI Passphrase |
| JWT | Token URL, Issuer (iss), Subject (sub), Audience (aud), Private Key | Key ID (kid), Algorithm, Scope |
| OAuth 2.0 | Auth URL, Client ID, Client Secret | Scope, Audience |
OCI stands for Oracle Cloud Infrastructure.
If you selected a type other than Custom, enter the values for that type.
If you selected Custom, add each credential:
apiKey.Refer to the secret in YAML template as {{ apiKey }}. The platform stores secret values encrypted.
Optional: Set a limit for F5 AI Red Team requests. See Limit AI Red Team requests.
Select Test and connect.
If the test passes, "Configuration Saved!" appears and the model appears under Model connections. Otherwise, see Troubleshooting.
Select Test and connect to test a connection. If the test fails, the platform doesn't save the connection or your changes.
The test sends one request with the prompt Hello there, empty conversation memory, and your inputs and secrets. For OAuth 2.0 or JWT, the platform first gets an access token. The test passes when the statusCode output is 200.
Select Test and connect.
If the test fails, expand Error to read the details.
The message "Error testing provider, please check error log" appears. The details include a provider response or a platform message.
Fix the issue.
Select Test and connect again.
To retest a connection, open the model's three-dot menu and select Manage model. Make your change, then select Test and connect.
Set a limit if your model provider restricts the rate of requests.
On Configure and connect your model, expand Advanced configuration.
Under AI Red team rate limiting, select Max concurrent requests or Max requests per second.
Enter a number from 1 to 10,000.
For example, enter 1 under Max concurrent requests to send attacks one at a time.
Under Model connections, select Manage next to a provider to see its models. To change a connection, open the model's three-dot menu and select Manage model. The same menu contains Access controls and Delete. For each model, you can:
Symptom: The test doesn't start.
Cause: YAML template contains invalid YAML. An unquoted expression at the start of a value can cause a parse error.
Fix: Quote the expression, for example url: '{{ url }}'. If the expression contains single quotes, use double quotes around the value.
Symptom: The error details name an undefined variable, such as apiKey.
Cause: The name doesn't match an input, a secret, or a provided variable. Names are case-sensitive. A change to the authentication type also clears secrets.
Fix: Check the spelling and add the missing input or secret. If you changed the authentication type, enter your secrets again.
Symptom: The test fails with this message.
Cause: The top-level configuration block doesn't return statusCode. A workflow returns only the names in its own outputs.
Fix: Add statusCode, content, and error to the top-level outputs. See Required outputs.
Symptom: The test reports that the endpoint resolves to a blocked address.
Cause: The platform blocks loopback, link-local, multicast, and unspecified addresses. By default, it also blocks private IP addresses.
Fix: Use a public endpoint URL. For a self-hosted deployment, ask your administrator whether private endpoints are allowed.
Symptom: The test fails with a timeout message.
Cause: The model didn't respond within the request timeout. The default is 20 seconds.
Fix: Increase the timeout in the request block, for example to 300 seconds.
Symptom: The test reports a 3xx status code, such as 301 or 307.
Cause: By default, the platform doesn't follow redirects.
Fix: Enter the final endpoint URL.