File tree Expand file tree Collapse file tree 4 files changed +19
-19
lines changed
semantic/providers/openai Expand file tree Collapse file tree 4 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -76,9 +76,9 @@ var DefaultConfig = Config{
7676 Provider : DefaultSemanticProvider ,
7777 Model : DefaultClaudeModel ,
7878 MaxTokens : 1500 ,
79- Timeout : 30 , // API request timeout in seconds
80- EnableVision : true , // Enable vision API for image analysis
81- MaxFileSize : 10485760 , // 10 MB
79+ Timeout : 30 , // API request timeout in seconds
80+ EnableVision : true , // Enable vision API for image analysis
81+ MaxFileSize : 10485760 , // 10 MB
8282 SkipExtensions : DefaultSkipExtensions ,
8383 SkipFiles : DefaultSkipFiles ,
8484 CacheDir : "~/" + AppDirName + "/" + CacheDirName ,
Original file line number Diff line number Diff line change @@ -191,10 +191,10 @@ type mockProvider struct {
191191func (m * mockProvider ) Analyze (ctx context.Context , metadata * types.FileMetadata ) (* types.SemanticAnalysis , error ) {
192192 return nil , nil
193193}
194- func (m * mockProvider ) Name () string { return m .name }
195- func (m * mockProvider ) Model () string { return m .model }
196- func (m * mockProvider ) SupportsVision () bool { return false }
197- func (m * mockProvider ) SupportsDocuments () bool { return false }
194+ func (m * mockProvider ) Name () string { return m .name }
195+ func (m * mockProvider ) Model () string { return m .model }
196+ func (m * mockProvider ) SupportsVision () bool { return false }
197+ func (m * mockProvider ) SupportsDocuments () bool { return false }
198198
199199// TestDaemon_SemanticProviderSwap tests atomic provider replacement
200200func TestDaemon_SemanticProviderSwap (t * testing.T ) {
@@ -656,7 +656,7 @@ func TestDaemon_DetectChanges(t *testing.T) {
656656 t .Run ("no changes" , func (t * testing.T ) {
657657 cfg := & config.Config {
658658 Semantic : config.SemanticConfig {APIKey : "key1" },
659- Daemon : config.DaemonConfig {Workers : 3 , LogLevel : "info" },
659+ Daemon : config.DaemonConfig {Workers : 3 , LogLevel : "info" },
660660 }
661661
662662 changes := d .detectChanges (cfg , cfg )
Original file line number Diff line number Diff line change @@ -97,8 +97,8 @@ func TestOpenAIProvider_SupportsVision(t *testing.T) {
9797 logger := slog .New (slog .NewTextHandler (os .Stderr , nil ))
9898
9999 tests := []struct {
100- model string
101- want bool
100+ model string
101+ want bool
102102 }{
103103 {"gpt-4o" , true },
104104 {"gpt-4o-mini" , true },
Original file line number Diff line number Diff line change @@ -40,15 +40,15 @@ type ModelInfo struct {
4040
4141// SemanticProviderStep handles semantic provider selection and configuration
4242type SemanticProviderStep struct {
43- phase providerPhase
44- providers []ProviderInfo
45- providerRadio * components.RadioGroup
46- modelRadio * components.RadioGroup
47- keyInput * components.TextInput
48- selectedProv int
49- selectedModel int
50- focusIndex int
51- err error
43+ phase providerPhase
44+ providers []ProviderInfo
45+ providerRadio * components.RadioGroup
46+ modelRadio * components.RadioGroup
47+ keyInput * components.TextInput
48+ selectedProv int
49+ selectedModel int
50+ focusIndex int
51+ err error
5252}
5353
5454// NewSemanticProviderStep creates a new semantic provider configuration step
You can’t perform that action at this time.
0 commit comments