| 1 | package config |
| 2 | |
| 3 | import "testing" |
| 4 | |
| 5 | func TestAMDCloudPreset(t *testing.T) { |
| 6 | p, ok := CuratedProviderPreset("amd-gpu-cloud") |
| 7 | if !ok || len(p.Entries) != 1 { |
| 8 | t.Fatal("missing AMD preset") |
| 9 | } |
| 10 | e := p.Entries[0] |
| 11 | if e.Kind != "openai" || e.BaseURL != "https://developer.amd.com.cn/radeon/api/v1" || e.Default != "DeepSeek-V4-Flash" { |
| 12 | t.Fatalf("unexpected AMD route: %+v", e) |
| 13 | } |
| 14 | if CatalogForProviderPreset(p).BrandID != "amd" { |
| 15 | t.Fatal("missing AMD brand") |
| 16 | } |
| 17 | } |
| 18 |