22 lines
703 B
Go
22 lines
703 B
Go
package qacapability
|
|
|
|
import "testing"
|
|
|
|
func TestTicket60ExactWebSearchCapability(t *testing.T) {
|
|
for _, model := range []string{"gpt-6.1-terra", "gpt-6.2-sol", "gpt-6.2-astra", "gpt-6-luna"} {
|
|
if !WebSearchSupported("openai", model) {
|
|
t.Fatal("approved model excluded", model)
|
|
}
|
|
for _, provider := range []string{"ollama", "anthropic", "gemini", "claudecode", "OpenAI", ""} {
|
|
if WebSearchSupported(provider, model) {
|
|
t.Fatal("other provider enabled", provider)
|
|
}
|
|
}
|
|
}
|
|
for _, model := range []string{"gpt-4o-mini", "unknown", "gpt-6.1-terra-latest", "gpt-6.2-sol-2026-11-26", ""} {
|
|
if WebSearchSupported("openai", model) {
|
|
t.Fatal("unapproved model enabled", model)
|
|
}
|
|
}
|
|
}
|