Search K
Appearance
Appearance
You can integrate F5 AI Security. We provide a Python script to help with the process, which includes the following variables:
BASE_URL: The URL of the AI Security deployment. Depends on whether your deployment uses AI Security SaaS or your own on-premises system. API_KEY: You can get your API_KEY, also known as an authorization token.PROVIDER_API_KEY: Provided by IBM Watson. Consult their documentation for instructions.PROJECT_ID, REGION, MODEL: Also provided by IBM Watson.Substitute actual values in the following Python script, and run it:
from calypsoai import CalypsoAI
cai = CalypsoAI(url={BASE_URL}, token={API_KEY})
provider = cai.providers.create(
name="Example-IBM-WatsonX",
systemProvider="watsonx-chat",
secrets={
"apiKey": {"name": "WatsonX API Key", "value": "{PROVIDER_API_KEY}"},
},
inputs={
"projectId": "PROJECT ID",
"region": "REGION",
"model": "MODEL",
},
)