(t *testing.T)
| 397 | } |
| 398 | |
| 399 | func TestIsReasoningModel(t *testing.T) { |
| 400 | t.Parallel() |
| 401 | |
| 402 | tests := []struct { |
| 403 | model string |
| 404 | want bool |
| 405 | }{ |
| 406 | {model: ""}, |
| 407 | {model: "o"}, |
| 408 | {model: "o1", want: true}, |
| 409 | {model: "o1-mini", want: true}, |
| 410 | {model: "o3.5", want: true}, |
| 411 | {model: "o10-preview", want: true}, |
| 412 | {model: "oabc"}, |
| 413 | {model: "ox"}, |
| 414 | {model: "o1preview"}, |
| 415 | {model: "gpt-5"}, |
| 416 | {model: "O1"}, |
| 417 | } |
| 418 | |
| 419 | for _, tt := range tests { |
| 420 | t.Run(tt.model, func(t *testing.T) { |
| 421 | t.Parallel() |
| 422 | |
| 423 | got := chatopenai.IsReasoningModel(tt.model) |
| 424 | require.Equal(t, tt.want, got) |
| 425 | }) |
| 426 | } |
| 427 | } |
| 428 | |
| 429 | func requireStringPointerValue(t *testing.T, value *string) string { |
| 430 | t.Helper() |
nothing calls this directly
no test coverage detected