# Anthropic

Elixir client for the Anthropic API.

## Installation

If [available in Hex](, the package can be installed
by adding `anthropic` to your list of dependencies in `mix.exs`:

def deps do
    {:anthropic, github: "connorjacobsen/anthropic"}

## Configuration

You can configure the client via `config.exs`:

config :anthropic, api_key: "your-api-key",

You can also specify the configuration options directly when initially a client. This will override any global config options.

```elixir "your-api-key")

## Completions

{:ok, data} = Anthropic.Completions.create(client, %{
  prompt: "\n\nWhy is the sky blue?\n\nAssistant:",
  model: "claude-v1",
  max_tokens_to_sample: 500