outlines
outlines copied to clipboard
Add Anthropic integration
Correct me if I'm wrong - for what I know, the anthropic/claude API does not have an API for outputting token probabilities yet
That's correct, but we try to add other providers so people can compare their output to guided generation in outlines. I often need to do this.
Anthropic is now available via AWS Bedrock: https://aws.amazon.com/bedrock/
I think it would be great to add support for Bedrock alltogether!
why was this idea of support for Bedrock dropped?
The team has very limited resources
What if I volunteered to do this?
Correct me if I'm wrong - for what I know, the anthropic/claude API does not have an API for outputting token probabilities yet
Yes, with Bedrock, what is returned from the API request varies from one model to the next. For instance, the Anthropic models response does not contain token probabilities in the response. On the other hand, the Cohere Command models response will contain an array of per token likelihoods if you specify the return_likelihoods input parameter. I am not familiar enough with Outlines to know if that is enough.