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 | e58ae44d26a26d38150ced1ac09f69a589d96f49 (patch) | |
| tree | 5e9ae4fbd1696d1b668dfe0be791004a87fc7a6a /internal/llm/provider_more_test.go | |
| parent | 356fd474e9454f21853417428df05d99dbcf5c89 (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/llm/provider_more_test.go')
| -rw-r--r-- | internal/llm/provider_more_test.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/internal/llm/provider_more_test.go b/internal/llm/provider_more_test.go index caad912..8d7b133 100644 --- a/internal/llm/provider_more_test.go +++ b/internal/llm/provider_more_test.go @@ -13,17 +13,11 @@ func TestWithOptions_Apply(t *testing.T) { } } -func TestNewFromConfig_Success_OpenAI_And_Copilot(t *testing.T) { +func TestNewFromConfig_Success_OpenAI(t *testing.T) { // OpenAI success oc := Config{Provider: "openai", OpenAIBaseURL: "http://x", OpenAIModel: "gpt"} - c, err := NewFromConfig(oc, "KEY", "", "", "") + c, err := NewFromConfig(oc, "KEY", "", "") if err != nil || c == nil || c.Name() != "openai" || c.DefaultModel() == "" { t.Fatalf("openai new: %v %v", c, err) } - // Copilot success - cc := Config{Provider: "copilot", CopilotBaseURL: "http://x", CopilotModel: "gpt-4o-mini"} - c2, err := NewFromConfig(cc, "", "", "KEY", "") - if err != nil || c2 == nil || c2.Name() != "copilot" || c2.DefaultModel() == "" { - t.Fatalf("copilot new: %v %v", c2, err) - } } |
