anthropic

package
v0.28.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package anthropic is a direct (non-Vertex) provider for the Anthropic API (api.anthropic.com), which speaks the Messages API. It reuses the shared messages codec; only the transport (x-api-key + anthropic-version header, model in body, vendor base URL) is Anthropic-specific.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAnthropicProvider

func NewAnthropicProvider(apiKey, modelName string, backendURLs []string, capability modelrepo.CapabilityConfig, httpClient *http.Client, tracker libtracker.ActivityTracker) modelrepo.Provider

NewAnthropicProvider returns a modelrepo.Provider for the direct Anthropic API.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL