Invoke Watsonx Tokenize
Invokes watsonx.ai tokenization.
This example provides a sample configuration for the Invoke Watsonx Tokenize policy. For more information on the policy parameter descriptions, see DataPower Nano Gateway documentation.
kind: InvokeWatsonxTokenize
apiVersion: api.ibm.com/v1
metadata:
name: invoke-watsonx-tokenize-policy
namespace: sample
version: '1.0'
spec:
inputMessage: 'request' # Optional - default value is request
outputMessage: 'response' # Optional - default value is response
region: 'us-south' # One of "us-south"|"eu-de"|"eu-gb"|"jp-tok"
tlsClientProfile: 'aiEndpointTlsClientProfile'
opVersion: '2024-03-14'
projectId: watsonxAiProjectId