feat(qa): add web search provider port (#60)

This commit is contained in:
2026-11-26 10:19:42 +01:00
parent 2747e857b1
commit 097164e657
20 changed files with 996 additions and 65 deletions

View File

@ -0,0 +1,21 @@
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)
}
}
}