Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ type Provider struct {
}

// New creates a new Anthropic AIProvider.
//
// NOTE: This provider is currently unwired. The activation site is
// plugins/ai/plugin.go via aiRegistry.RegisterProvider(New(cfg)) —
// do NOT wire it via initAIService.
func New(cfg Config) (*Provider, error) {
apiKey := cfg.APIKey
if apiKey == "" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ type Provider struct {
}

// New creates a new generic OpenAI-compatible provider.
//
// NOTE: This provider is currently unwired. The activation site is
// plugins/ai/plugin.go via aiRegistry.RegisterProvider(New(cfg)) —
// do NOT wire it via initAIService.
func New(cfg Config) (*Provider, error) {
if cfg.Name == "" {
return nil, fmt.Errorf("generic: provider name is required")
Expand Down
4 changes: 4 additions & 0 deletions plugin/ai/openai/plugin.go → ai/providers/openai/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ type Provider struct {
}

// New creates a new OpenAI AIProvider.
//
// NOTE: This provider is currently unwired. The activation site is
// plugins/ai/plugin.go via aiRegistry.RegisterProvider(New(cfg)) —
// do NOT wire it via initAIService.
func New(cfg Config) (*Provider, error) {
apiKey := cfg.APIKey
if apiKey == "" {
Expand Down
Loading