Bedrock cohere tokenizer
BedrockCohereTokenizer
Bases: SimpleTokenizer
BedrockCohereTokenizer
Bases: SimpleTokenizer
griptape/tokenizers/bedrock_cohere_tokenizer.py
DEFAULT_CHARACTERS_PER_TOKEN = 4
class-attribute
instance-attribute
MODEL_PREFIXES_TO_MAX_INPUT_TOKENS = {'cohere': 1024}
class-attribute
instance-attribute
MODEL_PREFIXES_TO_MAX_OUTPUT_TOKENS = {'cohere': 4096}
class-attribute
instance-attribute
characters_per_token: int = field(default=DEFAULT_CHARACTERS_PER_TOKEN, kw_only=True)
class-attribute
instance-attribute
model: str = field(kw_only=True)
class-attribute
instance-attribute