Skip to content

Using GPT Pilot with Anthropic models

Senko Rašić edited this page Mar 20, 2024 · 11 revisions

GPT Pilot has experimental support for Anthropic models - Claude 3 Opus, Sonnet and Haiku.

To use Anthropic, you'll need their API key. You'll also need to edit your .env to add:

  • ANTHROPIC_API_KEY - your Anthropic API key
  • MODEL_NAME - this uses gpt4-turbo-preview by default, change it to anthropic/ + model

If you're using Anthropic via a proxy or through AWS Bedrock, you'll also need to set ANTHROPIC_ENDPOINT accordingly.

Clone this wiki locally