summaryrefslogtreecommitdiff
path: root/internal/llm/provider_more2_test.go
blob: fd9b2c2f75447a3aac9205c5c7a014ff963da829 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package llm

import "testing"

func TestNewFromConfig_Copilot(t *testing.T) {
    t.Setenv("COPILOT_API_KEY", "x")
    cfg := Config{Provider: "copilot", CopilotModel: "small"}
    c, err := NewFromConfig(cfg, "", "x")
    if err != nil || c == nil {
        t.Fatalf("copilot provider failed: %v %v", c, err)
    }
}