guidance icon indicating copy to clipboard operation
guidance copied to clipboard

Support for Anthropic Claude v3+ models

Open geoffyip opened this issue 1 year ago • 3 comments

From Claude 3 onwards, all future Anthropic models are only compatible with the new Messages API instead of the legacy Text Completions API.

Changes to the prompt input structure are required. The Messages API is backwards compatible with other Anthropic models so it should not break usage for anyone who is still on Claude 2.1 or lower.

Migration Guide Migration Guide 2 Reference

geoffyip avatar Mar 22 '24 15:03 geoffyip

Specifically, this line needs to be fixed: https://github.com/guidance-ai/guidance/blob/main/guidance/models/_anthropic.py#L59

A-Vaillant avatar May 07 '24 00:05 A-Vaillant

With Claude 3.5 I think this is an important feature to have. OpenAi is finally getting a much needed competitor !

maximegmd avatar Jun 22 '24 00:06 maximegmd

I believe we have this supported with the latest guidance release 🙂.

Harsha-Nori avatar Jun 22 '24 05:06 Harsha-Nori