Companion

Provides shared logic and utility functions for managing and interacting with the Bedrock Anthropic service model. This companion object includes methods and constants that are central to constructing and handling request payloads, ensuring adherence to Bedrock-specific requirements for the Anthropic Claude model family.

Properties

Link copied to clipboard
const val MAX_TOKENS_DEFAULT: Int = 4000

The maximum number of tokens to generate in the response. default to 4k tokens because of Claude Haiku 3, refer to https://docs.anthropic.com/en/docs/about-claude/models/overview#model-comparison