Model providers
Overview
Section titled “Overview”The trace analyzer sends each eligible session to a model endpoint in your provider account for analysis. Use this guide to choose that endpoint and set up its authentication before you write the spec.analysis settings for your deployment. For a manually managed installation, set the equivalent worker chart values.
Choose the provider independently from the cloud that hosts PIG. The analyzer can use the same supported provider as your agents. For example, an analyzer on GKE with Cloud Storage can use OpenAI or Azure OpenAI.
Support for Anthropic’s Claude models is coming soon.
Choose a supported endpoint
Section titled “Choose a supported endpoint”The analyzer calls the provider’s Responses API. Set provider, baseURL, and authentication to one of these combinations:
| Provider value | Responses API base URL | Authentication |
|---|---|---|
openai | https://api.openai.com/v1 | api_key |
azure_openai | https://RESOURCE.openai.azure.com/openai/v1 or https://RESOURCE.services.ai.azure.com/openai/v1 | api_key |
aws_bedrock | https://bedrock-mantle.REGION.api.aws/v1 or the same host with /openai/v1 | api_key or aws_sigv4 |
Replace RESOURCE and REGION with your provider settings. Set name to a model available to your account through that endpoint. For Azure OpenAI, use the model deployment name.
The analyzer accepts only these endpoint shapes. Each URL uses HTTPS, with no embedded credentials, explicit port, query parameters, or fragment. The analyzer rejects ordinary Bedrock Runtime URLs and other OpenAI-compatible endpoints. Vertex AI isn’t a supported provider, including for deployments on Google Cloud.
Configure API key authentication
Section titled “Configure API key authentication”Use API key authentication with any of the three providers.
-
Deliver the provider’s API key through your secret manager to a Kubernetes Secret in the deployment’s namespace. For example, use key
model-api-keyin Secretpig-credentials. -
Set the model fields under
spec.analysisand reference that Secret:model:provider: openaiauthentication: api_keybaseURL: https://api.openai.com/v1name: REPLACE_MODEL_NAMEapiKeySecretRef:name: pig-credentialskey: model-api-key
Authenticate to Bedrock with AWS credentials
Section titled “Authenticate to Bedrock with AWS credentials”Use AWS Signature Version 4 (SigV4) to authenticate to Bedrock with the analyzer’s AWS workload identity in place of an API key.
-
Grant the analyzer’s AWS identity access to the chosen Bedrock model. Storage permissions alone don’t authorize inference.
-
Set the model fields under
spec.analysiswithprovider: aws_bedrockandauthentication: aws_sigv4, and omitapiKeySecretRef:model:provider: aws_bedrockauthentication: aws_sigv4baseURL: https://bedrock-mantle.REGION.api.aws/v1name: REPLACE_MODEL_NAMEThe analyzer signs each request with the AWS credentials available to its pod, such as its workload identity. It takes the signing region from the
baseURLhostname.
Plan access, quota, and data handling
Section titled “Plan access, quota, and data handling”The analyzer sends session content and relevant instruction context to your selected model endpoint. Choose a region and provider policy that meet your requirements, as described in Trust and data model.
Reserve model quota for analysis alongside your agents’ traffic. Before you expand collection, monitor rate limits, latency, and analysis completion time. A larger cluster doesn’t add model quota.
The model settings take effect together with the rest of spec.analysis, including the activation time and quiet window. After you set or change them, use a real session to verify successful analysis.
See also
Section titled “See also”- Deployment configuration, for every
spec.analysisfield - Compute and sizing, for measuring model throttling during a pilot
- Networking and identity, for allowing the analyzer’s outbound connection to your model endpoint