BedrockModel

data class BedrockModel(val model: LLModel, val modelId: String = model.id, val inferenceProfilePrefix: String? = BedrockInferencePrefixes.US.prefix)(source)

Represents a Bedrock model with an optional inference profile prefix.

This allows users to explicitly specify an inference profile prefix that will be prepended to the model ID when making requests to AWS Bedrock. If the prefix is null, no prefix will be added, and the model ID will be used as-is. If a value is provided, the effective model ID will be ".".

Parameters

model

The base LLModel to use.

modelId

The ID of the used model. Defaults to the ID of the provided model.

inferenceProfilePrefix

Optional prefix to prepend to the model ID. If null, no prefix is used.

Constructors

Link copied to clipboard
constructor(model: LLModel, modelId: String = model.id, inferenceProfilePrefix: String? = BedrockInferencePrefixes.US.prefix)

Properties

Link copied to clipboard

Returns the LLModel with the effective model ID.

Link copied to clipboard

Returns the effective model ID, only adds inference profile prefix if provided.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard