griptape
griptape copied to clipboard
Add Bedrock Cohere Support
The BedrockPromptDriver
is missing support for Cohere.
@vasinov so this is an interesting one. The Bedrock APIs don't return a token count, and Cohere's tokenizer requires an API key 😕
Related to https://github.com/griptape-ai/griptape/issues/337. Can we skip this parameter entirely?
@collindutter according to the Cohere SDK, it looks like max_tokens
is an optional API parameter. Would it make sense to send a value if explicitly set by the caller and fall back to the default otherwise?
@andrewfrench I think that's our best option, especially if it's not a required parameter.