Skip to content

Using GPT Pilot with Anthropic models

Weston Ludeke edited this page Aug 8, 2024 · 11 revisions

1 - To use Anthropic, get an API key from the Anthropic website.

2 - Edit the GPT Pilot config.json file's llm section. If you're using Anthropic via a proxy or through AWS Bedrock, you'll also need to set base_url accordingly from the default null:

"llm": {
  "anthropic": {
    "base_url": "https://api.anthropic.com/",
    "api_key": "your-anthropic-key",
    "connect_timeout": 60.0,
    "read_timeout": 10.0
  }
},

3 - Update the agent section of the config.json file for Anthropic. Note: This is an example, you'll need to double-check the official Anthropic documentation for the most recent model info:

"agent": {
    "default": {
      "provider": "anthropic",
      "model": "claude-3-5-sonnet-20240620",
      "temperature": 0.5
    },
Clone this wiki locally