summaryrefslogtreecommitdiff
path: root/internal/llmutils/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/llmutils/client.go')
-rw-r--r--internal/llmutils/client.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/internal/llmutils/client.go b/internal/llmutils/client.go
index de65935..c8d9a90 100644
--- a/internal/llmutils/client.go
+++ b/internal/llmutils/client.go
@@ -22,9 +22,6 @@ func NewClientFromApp(cfg appconfig.App) (llm.Client, error) {
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,
@@ -37,13 +34,9 @@ func NewClientFromApp(cfg appconfig.App) (llm.Client, error) {
if strings.TrimSpace(orKey) == "" {
orKey = os.Getenv("OPENROUTER_API_KEY")
}
- cpKey := os.Getenv("HEXAI_COPILOT_API_KEY")
- if strings.TrimSpace(cpKey) == "" {
- cpKey = os.Getenv("COPILOT_API_KEY")
- }
anKey := os.Getenv("HEXAI_ANTHROPIC_API_KEY")
if strings.TrimSpace(anKey) == "" {
anKey = os.Getenv("ANTHROPIC_API_KEY")
}
- return llm.NewFromConfig(llmCfg, oaKey, orKey, cpKey, anKey)
+ return llm.NewFromConfig(llmCfg, oaKey, orKey, anKey)
}