diff options
| author | paul@buetow.org <paul@buetow.org> | 2026-02-06 16:35:45 +0200 |
|---|---|---|
| committer | paul@buetow.org <paul@buetow.org> | 2026-02-06 16:35:45 +0200 |
| commit | 12a249282d5dd9dc2ee1e66f08d6acc26dd29eba (patch) | |
| tree | 5e9ae4fbd1696d1b668dfe0be791004a87fc7a6a /internal/appconfig/config_env_model_test.go | |
| parent | 89dc2aab0b6be2620766a4b4b750fa888641b89d (diff) | |
Remove GitHub Copilot provider support
Remove all GitHub Copilot integration from the codebase to streamline
the supported provider set to OpenAI, OpenRouter, Anthropic, and Ollama.
Changes:
- Delete core Copilot implementation (copilot.go) and all related tests
- Remove Copilot configuration fields from App struct and Config
- Remove Copilot from provider factory and API key handling
- Update all test files to replace Copilot references with other providers
- Remove Copilot documentation from README, configuration guide, and examples
- Remove Copilot section from config.toml.example
All tests pass successfully after removal.
Co-authored-by: Cursor <cursoragent@cursor.com>
Diffstat (limited to 'internal/appconfig/config_env_model_test.go')
| -rw-r--r-- | internal/appconfig/config_env_model_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/appconfig/config_env_model_test.go b/internal/appconfig/config_env_model_test.go index 7038819..e10fa5d 100644 --- a/internal/appconfig/config_env_model_test.go +++ b/internal/appconfig/config_env_model_test.go @@ -37,9 +37,9 @@ func TestEnv_ModelForce_OverridesProviderSpecific(t *testing.T) { } func TestEnv_SurfaceModelOverrides(t *testing.T) { - t.Setenv("HEXAI_MODEL_COMPLETION", "gpt-c") + t.Setenv("HEXAI_MODEL_COMPLETION", "claude-c") t.Setenv("HEXAI_TEMPERATURE_COMPLETION", "0.44") - t.Setenv("HEXAI_PROVIDER_COMPLETION", "copilot") + t.Setenv("HEXAI_PROVIDER_COMPLETION", "anthropic") t.Setenv("HEXAI_MODEL_CLI", "gpt-cli") t.Setenv("HEXAI_TEMPERATURE_CLI", "0.22") t.Setenv("HEXAI_PROVIDER_CLI", "ollama") @@ -48,13 +48,13 @@ func TestEnv_SurfaceModelOverrides(t *testing.T) { t.Fatalf("expected single completion entry, got %+v", cfg.CompletionConfigs) } comp := cfg.CompletionConfigs[0] - if comp.Model != "gpt-c" { + if comp.Model != "claude-c" { t.Fatalf("expected completion model override, got %+v", comp) } if comp.Temperature == nil || *comp.Temperature != 0.44 { t.Fatalf("expected completion temperature override, got %+v", comp) } - if comp.Provider != "copilot" { + if comp.Provider != "anthropic" { t.Fatalf("expected completion provider override, got %+v", comp) } if len(cfg.CLIConfigs) != 1 { |
