Initial release of omnillm-anthropic, a thick provider for OmniLLM using the official anthropic-sdk-go SDK.
- Chat Completion - Full support for Anthropic Messages API
- Streaming - Real-time streaming responses
- Tool Calling - Function/tool calling support
- System Messages - System prompt support
- Auto-Registration - Automatically registers as thick provider via
init()
| Feature | Supported |
|---|---|
| Chat Completion | Yes |
| Streaming | Yes |
| Tool Calling | Yes |
| System Messages | Yes |
| JSON Mode | No |
go get github.com/plexusone/omnillm-anthropic@v0.1.0import (
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"),
})github.com/anthropics/anthropic-sdk-gov1.35.0github.com/plexusone/omnillm-corev0.15.0
Includes conformance tests using the providertest framework from omnillm-core.
# Run unit tests
go test -v ./...
# Run integration tests (requires API key)
ANTHROPIC_API_KEY=your-key go test -v ./...