Add claude client to store

This commit is contained in:
2026-03-04 14:21:51 +00:00
parent f851b0258f
commit 1d4beca336
5 changed files with 35 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
package services
import (
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
type ClaudeConfig struct {
APIKey string
}
func InitClaude(config *ClaudeConfig) *anthropic.Client {
client := anthropic.NewClient(option.WithAPIKey(config.APIKey))
return &client
}