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,14 @@
// Package qacapability declares Q&A capabilities independently of synthesis and scoring.
package qacapability
// WebSearchSupported deliberately requires an exact provider and model ID.
func WebSearchSupported(provider, model string) bool {
if provider != "openai" {
return false
}
switch model {
case "gpt-6.1-terra", "gpt-6.2-sol", "gpt-6.2-astra", "gpt-6-luna":
return true
}
return false
}