api: accept "max" as a think value (#15787)

This commit is contained in:
Parth Sareen
2026-04-24 01:49:39 -07:00
committed by GitHub
parent 590109c835
commit c2ebb4d57c
6 changed files with 87 additions and 15 deletions

View File

@@ -495,6 +495,11 @@ func TestThinking_UnmarshalJSON(t *testing.T) {
input: `{ "think": "low" }`,
expectedThinking: &ThinkValue{Value: "low"},
},
{
name: "string_max",
input: `{ "think": "max" }`,
expectedThinking: &ThinkValue{Value: "max"},
},
{
name: "invalid_string",
input: `{ "think": "invalid" }`,