AIGatewayModelVectorDBConfigRedis
objectConfig for connecting to a Cloud Provider’s Redis instance.
Allowed values:redis
the desired dimensionality for the vectors
the distance metric to use for vector searches
Allowed values:cosineeuclidean
the default similarity threshold for accepting semantic search results (float). Higher threshold means more results are considered similar.
One OfAuth related config for connecting to a Cloud Provider’s Redis instance.
AWS specific configs for connecting to a Cloud Provider’s redis instance.
Show Child Parameters
Cluster configuration for the Redis connection.
Show Child Parameters
An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
Default:2000
>= 0<= 2147483646
If the connection to Redis is proxied (e.g. Envoy), set it true. Set the host and port to point to the proxy address.
Default:false
Database to use for the Redis connection when using the redis strategy
Default:0
A string representing a host name, such as example.com.
This field is referenceable.
Default:127.0.0.1
Keepalive configuration for the Redis connection.
Show Child Parameters
Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis.
This field is referenceable.
This field is encrypted.
An integer representing a port number between 0 and 65535, inclusive.
This field is referenceable.
Default:6379
>= 0<= 65535
An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
Default:2000
>= 0<= 2147483646
An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2.
Default:2000
>= 0<= 2147483646
Configuration for Redis Sentinel.
Show Child Parameters
A string representing an SNI (server name indication) value for TLS.
This field is referenceable.
If set to true, uses SSL to connect to Redis.
Default:false
If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure lua_ssl_trusted_certificate in kong.conf to specify the CA (or server) certificate used by your Redis server. You may also need to configure lua_ssl_verify_depth accordingly.
Default:true
Username to use for Redis connections. If undefined, ACL authentication won’t be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to default.
This field is referenceable.
AIGatewayModelVectorDBConfigPgVector
objectAllowed values:pgvector
the desired dimensionality for the vectors
the distance metric to use for vector searches
Allowed values:cosineeuclidean
the default similarity threshold for accepting semantic search results (float). Higher threshold means more results are considered similar.
the database of the pgvector database
Default:kong-pgvector
the host of the pgvector database
Default:127.0.0.1
the password of the pgvector database
This field is referenceable.
This field is encrypted.
the port of the pgvector database
Default:5432
Show Child Parameters
the timeout of the pgvector database
Default:5000
AIGatewayModelFormat
objectRequest and response format supported by this model.
The format type.
Example:openai
AIGatewayTargetModel
objectA target model instance that this model entry routes requests to.
The name of the model defined in the upstream provider that will be executed.
Example:gpt-5-model
Lightweight object used to reference a provider instance, identified by its ref.
Show Child Parameters
One OfConfiguration for a target model.
Anthropic-specific configuration for a model.
Show Child Parameters
AIGatewayTargetModelConfig
Configuration for a target model.
One OfThe number of dimensions for embedding outputs.
The maximum number of tokens to generate in the response.
Cost per input token for billing and cost tracking.
Cost per output token for billing and cost tracking.
Controls randomness in the model output. Higher values produce more varied responses.
Limits the number of highest-probability tokens considered during generation.
Nucleus sampling probability mass. Tokens with cumulative probability up to top_p are considered.
The upstream URL for the model endpoint.
Allowed values:anthropic
The Anthropic API version to use.