Documentation
¶
Overview ¶
Package anthropic implements the Adapter as a transparent passthrough to a native Anthropic Messages API (api.anthropic.com or a compatible endpoint). It performs NO dialect translation: requests are forwarded verbatim and responses returned unchanged (see translate.Identity). Its value is shim's observability — redacted logs, /v1/metrics, loud-fail — in front of a real Anthropic endpoint with zero translation risk.
Construct via New and register from cmd/shim/main.go, mirroring the deepseek adapter; no init()-time registration.
Index ¶
Constants ¶
View Source
const ( // Name is the registry key (config ADAPTER=anthropic). Name = "anthropic" // DefaultBaseURL is used when UPSTREAM_BASE_URL is empty. DefaultBaseURL = "https://api.anthropic.com" // DefaultAnthropicVersion is sent when the client omits anthropic-version. // Anthropic requires the header; shim supplies a default and logs the // inject (thesis-2: never silently modify inbound traffic). DefaultAnthropicVersion = "2023-06-01" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.