Skip to content

teff.provider.builtin.anthropic

teff.provider.builtin.anthropic

Anthropic preset (responses normalised to a shared message shape).

Classes:

Name Description
Anthropic

Anthropic /messages endpoint.

Anthropic

Bases: Provider

Anthropic /messages endpoint.

Source code in teff/provider/builtin/anthropic.py
 6
 7
 8
 9
10
11
12
13
14
15
class Anthropic(Provider):
    """Anthropic ``/messages`` endpoint."""

    name = "anthropic"
    type = "anthropic_compatible"
    base_url = "https://api.anthropic.com/v1"
    chat_path = "/messages"
    api_key_env = "ANTHROPIC_API_KEY"
    auth_header = "x-api-key"
    auth_prefix = ""