feat(qa): add web search provider port (#60)
This commit is contained in:
21
backend/internal/qacapability/capability_test.go
Normal file
21
backend/internal/qacapability/capability_test.go
Normal 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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user