model.go 418 B

123456789101112131415161718192021
  1. package common
  2. import "strings"
  3. var (
  4. // OpenAIResponseOnlyModels is a list of models that are only available for OpenAI responses.
  5. OpenAIResponseOnlyModels = []string{
  6. "o3-pro",
  7. "o3-deep-research",
  8. "o4-mini-deep-research",
  9. }
  10. )
  11. func IsOpenAIResponseOnlyModel(modelName string) bool {
  12. for _, m := range OpenAIResponseOnlyModels {
  13. if strings.Contains(m, modelName) {
  14. return true
  15. }
  16. }
  17. return false
  18. }