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