Defines a custom AWS Bedrock model that is not exported by the plugin
The name of the model (e.g., "custom.my-model-v1:0")
Optional
Plugin options including AWS credentials and region
A ModelAction that can be used with Genkit
import { defineAwsBedrockModel } from 'genkitx-aws-bedrock';const customModel = defineAwsBedrockModel('custom.my-model-v1:0', { region: 'us-east-1'});const response = await ai.generate({ model: customModel, prompt: 'Hello!'}); Copy
import { defineAwsBedrockModel } from 'genkitx-aws-bedrock';const customModel = defineAwsBedrockModel('custom.my-model-v1:0', { region: 'us-east-1'});const response = await ai.generate({ model: customModel, prompt: 'Hello!'});
Defines a custom AWS Bedrock model that is not exported by the plugin