diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-06 23:24:25 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-06 23:24:25 +0200 |
| commit | e30c3c82fc270db7559ac44feb0950bdd4c72a92 (patch) | |
| tree | 38ad18ad7de669adcd01d5de7c4472aefd238bf1 /internal/hexailsp | |
| parent | 0176d2dd4ddce82e9752c2f3ca4023a1c82b221e (diff) | |
| parent | 7c34c494bf1c6185f5a936e015eef76793703acd (diff) | |
Merge branch 'main' of codeberg.org:snonux/hexai
Diffstat (limited to 'internal/hexailsp')
| -rw-r--r-- | internal/hexailsp/run.go | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/internal/hexailsp/run.go b/internal/hexailsp/run.go index 47ed648..e2aaf9d 100644 --- a/internal/hexailsp/run.go +++ b/internal/hexailsp/run.go @@ -119,9 +119,6 @@ func buildClientIfNil(cfg appconfig.App, client llm.Client) llm.Client { OllamaBaseURL: cfg.OllamaBaseURL, OllamaModel: cfg.OllamaModel, OllamaTemperature: cfg.OllamaTemperature, - CopilotBaseURL: cfg.CopilotBaseURL, - CopilotModel: cfg.CopilotModel, - CopilotTemperature: cfg.CopilotTemperature, AnthropicBaseURL: cfg.AnthropicBaseURL, AnthropicModel: cfg.AnthropicModel, AnthropicTemperature: cfg.AnthropicTemperature, @@ -136,17 +133,12 @@ func buildClientIfNil(cfg appconfig.App, client llm.Client) llm.Client { if strings.TrimSpace(orKey) == "" { orKey = os.Getenv("OPENROUTER_API_KEY") } - // Prefer HEXAI_COPILOT_API_KEY; fall back to COPILOT_API_KEY - cpKey := os.Getenv("HEXAI_COPILOT_API_KEY") - if strings.TrimSpace(cpKey) == "" { - cpKey = os.Getenv("COPILOT_API_KEY") - } // Prefer HEXAI_ANTHROPIC_API_KEY; fall back to ANTHROPIC_API_KEY anKey := os.Getenv("HEXAI_ANTHROPIC_API_KEY") if strings.TrimSpace(anKey) == "" { anKey = os.Getenv("ANTHROPIC_API_KEY") } - if c, err := llm.NewFromConfig(llmCfg, oaKey, orKey, cpKey, anKey); err != nil { + if c, err := llm.NewFromConfig(llmCfg, oaKey, orKey, anKey); err != nil { logging.Logf("lsp ", "llm disabled: %v", err) return nil } else { |
