You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gateway): add verbosity param for gpt-5.6 models
Support OpenAI's verbosity parameter (low/medium/high) end to end:
- accept top-level verbosity in /v1/chat/completions and
text.verbosity in /v1/responses
- validate against a new verbosity capability flag on provider
mappings (400 for unsupported models)
- forward as text.verbosity on the Responses API and top-level
verbosity on Chat Completions; strip it when auto routing or
retry fallback lands on a mapping without support
- enable the flag on the gpt-5.6-sol/terra/luna OpenAI mappings
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
"Controls the computational effort for supported models (currently only claude-opus-4-5-20251101)",
305
305
example: "medium",
306
306
}),
307
+
verbosity: z
308
+
.enum(["low","medium","high"])
309
+
.nullable()
310
+
.optional()
311
+
.transform((val)=>(val===null ? undefined : val))
312
+
.openapi({
313
+
description:
314
+
"Controls how detailed the model's responses are. Only supported by OpenAI GPT-5.6 and later models; requests to models without verbosity support return a 400 error.",
message: `Model ${requestedModel} does not support the verbosity parameter. Remove the verbosity parameter or use a model that supports it (OpenAI GPT-5.6 and later).`,
214
+
});
215
+
}
216
+
}
217
+
192
218
// Check if reasoning.max_tokens is specified but model doesn't support it
193
219
// Skip this check for "auto" and "custom" models as they will be resolved dynamically
0 commit comments