Thick provider for OmniLLM using the official anthropic-sdk-go SDK.
go get github.com/plexusone/omnillm-anthropicimport (
omnillm "github.com/plexusone/omnillm-core"
_ "github.com/plexusone/omnillm-anthropic" // Auto-registers thick provider
)
client, _ := omnillm.NewClient(omnillm.ClientConfig{
Provider: omnillm.ProviderNameAnthropic,
APIKey: os.Getenv("ANTHROPIC_API_KEY"),
})| Feature | Supported |
|---|---|
| Chat Completion | Yes |
| Streaming | Yes |
| Tool Calling | Yes |
| System Messages | Yes |
| JSON Mode | No |
| Field | Required | Description |
|---|---|---|
APIKey |
Yes | Anthropic API key |
BaseURL |
No | Custom endpoint |
See OmniLLM Core for full API documentation.
MIT