Skip to content

ProviderRef

Type: object

Properties

Property Type Required Description
providerName string Yes
weight integer Yes

Relative traffic proportion. 0 disables the ref. Defaults to 1 if omitted on the CR.

Constraints: minimum 0; maximum 100

apiFormat string Yes
path string Yes
targetModel string Yes
config map of string No

Optional model-provider binding configuration (externalProviderRefs.config)

authMechanism string No

Auth type override from the ExternalModel providerRef (overrides ExternalProvider auth)

Allowed values: apikey, sigv4, oauth2

credentialSecretRef string No

Secret name override from the ExternalModel providerRef (overrides ExternalProvider auth.secretRef)

provider ExternalProviderDetails No

Enriched from the referenced ExternalProvider (list response only). Auth fields reflect model-level overrides when present.

Example

{
  "providerName": "string",
  "weight": 0,
  "apiFormat": "string",
  "path": "string",
  "targetModel": "string",
  "config": {
    "key": "string"
  },
  "authMechanism": "apikey",
  "credentialSecretRef": "string",
  "provider": {
    "displayName": "string",
    "description": "string",
    "endpointUrl": "string",
    "authMechanism": "apikey",
    "credentialSecretRef": "string",
    "provider": "string",
    "config": {
      "key": "string"
    },
    "phase": "string",
    "statusMessage": "string",
    "reason": "Reconciled"
  }
}