Skip to content

Commit d530d6a

Browse files
committed
feat: add support for Phind provider
- Introduce configuration for the Phind provider - Update provider list to include Phind - Adjust related validation and parsing logic
1 parent 2cf3bae commit d530d6a

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

pkg/config/config.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
const (
14-
DefaultProvider = "openai"
14+
DefaultProvider = "phind"
1515
DefaultOpenAIModel = "chatgpt-4o-latest"
1616
DefaultGeminiModel = "models/gemini-2.0-flash"
1717
DefaultAnthropicModel = "claude-3-5-sonnet-latest"
@@ -32,16 +32,15 @@ type CommitTypeConfig struct {
3232
}
3333

3434
type Config struct {
35-
Prompt string `yaml:"prompt,omitempty"`
36-
CommitType string `yaml:"commitType,omitempty"`
37-
Template string `yaml:"template,omitempty"`
38-
SemanticRelease bool `yaml:"semanticRelease,omitempty"`
39-
InteractiveSplit bool `yaml:"interactiveSplit,omitempty"`
40-
EnableEmoji bool `yaml:"enableEmoji,omitempty"`
41-
Provider string `yaml:"provider,omitempty" validate:"omitempty,oneof=openai gemini anthropic deepseek phind"`
42-
// Instead of a simple []string, we store an array of objects with {type, emoji}
43-
CommitTypes []CommitTypeConfig `yaml:"commitTypes,omitempty"`
44-
LockFiles []string `yaml:"lockFiles,omitempty"`
35+
Prompt string `yaml:"prompt,omitempty"`
36+
CommitType string `yaml:"commitType,omitempty"`
37+
Template string `yaml:"template,omitempty"`
38+
SemanticRelease bool `yaml:"semanticRelease,omitempty"`
39+
InteractiveSplit bool `yaml:"interactiveSplit,omitempty"`
40+
EnableEmoji bool `yaml:"enableEmoji,omitempty"`
41+
Provider string `yaml:"provider,omitempty" validate:"omitempty,oneof=openai gemini anthropic deepseek phind"`
42+
CommitTypes []CommitTypeConfig `yaml:"commitTypes,omitempty"`
43+
LockFiles []string `yaml:"lockFiles,omitempty"`
4544

4645
OpenAIAPIKey string `yaml:"openAiApiKey,omitempty"`
4746
OpenAIModel string `yaml:"openaiModel,omitempty"`

0 commit comments

Comments
 (0)