effort_catalog_test.go 771 B

1234567891011121314151617181920212223242526272829
  1. package claude
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/require"
  5. )
  6. func TestEffortLevelsForModel(t *testing.T) {
  7. t.Parallel()
  8. tests := []struct {
  9. model string
  10. want []string
  11. }{
  12. {model: "claude-opus-4-6", want: []string{"low", "medium", "high", "max"}},
  13. {model: "anthropic/claude-sonnet-4-6", want: []string{"low", "medium", "high", "max"}},
  14. {model: "claude-opus-5", want: []string{"low", "medium", "high", "xhigh", "max"}},
  15. {model: "claude-opus-4-5-20251101", want: []string{"low", "medium", "high"}},
  16. {model: "claude-haiku-4-5-20251001", want: nil},
  17. {model: "gpt-5.6", want: nil},
  18. }
  19. for _, tt := range tests {
  20. t.Run(tt.model, func(t *testing.T) {
  21. t.Parallel()
  22. require.Equal(t, tt.want, EffortLevelsForModel(tt.model))
  23. })
  24. }
  25. }