Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: say what the responses content-part catch-all is actually for

danielhanchen873f43e6b41c
diff --git a/studio/backend/models/inference.py b/studio/backend/models/inference.py
index 5d7100ca98b..400a23bb9e0 100644
--- a/studio/backend/models/inference.py
+++ b/studio/backend/models/inference.py
@@ -2934,8 +2934,10 @@ class ResponsesOutputTextPart(BaseModel):
class ResponsesUnknownContentPart(BaseModel):
"""Catch-all for unmodelled content-part types.
- Keeps validation green for newer part types (e.g. ``input_audio``); skipped
- during normalisation rather than rejected with a 422.
+ Keeps validation green for newer part types (e.g. ``input_audio``) so an unrelated turn
+ is never answered with a 422 schema dump. Normalisation then refuses the part by name,
+ the way ``UnknownContentPart`` is refused on the Chat Completions side: landing here
+ means the part was understood well enough to say what it is, not that it can be served.
"""
type: str