Commit
·
adb7865
1
Parent(s):
f206f49
docs(SPEC-23): Add version-specific clarification for Gradio 6.0.1
Browse filesClarify that `type="messages"` parameter does NOT exist in Gradio 6.0.1:
- Gradio 4.x/5.x had `type="messages"` or `type="tuples"`
- Gradio 6.0.0 REMOVED tuples format entirely (per changelog)
- In 6.0.1, messages format is the ONLY format - no param needed
Added source verification command and reference to changelog.
docs/specs/SPEC-23-GRADIO-MODERNIZATION.md
CHANGED
|
@@ -80,7 +80,21 @@ Gradio 6.0.1 uses OpenAI-style dictionaries by default:
|
|
| 80 |
|
| 81 |
This is the modern standard and aligns with our LLM backends.
|
| 82 |
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
### 2. Fill Height (`fill_height=True`)
|
| 86 |
|
|
@@ -182,5 +196,15 @@ uv run python src/app.py
|
|
| 182 |
## References
|
| 183 |
|
| 184 |
- [Gradio ChatInterface Docs](https://www.gradio.app/docs/gradio/chatinterface)
|
|
|
|
| 185 |
- [GitHub #10407: fill_height with save_history](https://github.com/gradio-app/gradio/issues/10407)
|
| 186 |
- [GitHub #11109: Autoscroll issue](https://github.com/gradio-app/gradio/issues/11109)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
This is the modern standard and aligns with our LLM backends.
|
| 82 |
|
| 83 |
+
#### ⚠️ Version-Specific Note: No `type=` Parameter in 6.0.1
|
| 84 |
+
|
| 85 |
+
**Why online docs may confuse you:**
|
| 86 |
+
- Gradio 4.x/5.x had `type="messages"` or `type="tuples"` parameter
|
| 87 |
+
- Gradio 6.0.0 **removed** the tuples format entirely ([changelog](https://www.gradio.app/changelog))
|
| 88 |
+
- In 6.0.1, there is **no `type` parameter** - messages format is the only format
|
| 89 |
+
|
| 90 |
+
**Source verification (December 2025):**
|
| 91 |
+
```bash
|
| 92 |
+
# Check installed signature - no 'type' param exists
|
| 93 |
+
uv run python -c "import gradio; import inspect; print([p for p in inspect.signature(gradio.ChatInterface).parameters])"
|
| 94 |
+
# Result: ['fn', 'multimodal', 'chatbot', ... ] - no 'type'
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
If you see docs mentioning `type="messages"`, they're from older Gradio versions.
|
| 98 |
|
| 99 |
### 2. Fill Height (`fill_height=True`)
|
| 100 |
|
|
|
|
| 196 |
## References
|
| 197 |
|
| 198 |
- [Gradio ChatInterface Docs](https://www.gradio.app/docs/gradio/chatinterface)
|
| 199 |
+
- [Gradio 6.0 Changelog](https://www.gradio.app/changelog) - Confirms tuples format removal
|
| 200 |
- [GitHub #10407: fill_height with save_history](https://github.com/gradio-app/gradio/issues/10407)
|
| 201 |
- [GitHub #11109: Autoscroll issue](https://github.com/gradio-app/gradio/issues/11109)
|
| 202 |
+
|
| 203 |
+
---
|
| 204 |
+
|
| 205 |
+
## Version History
|
| 206 |
+
|
| 207 |
+
| Date | Change |
|
| 208 |
+
|------|--------|
|
| 209 |
+
| 2025-12-07 | Initial implementation (SPEC-22 + SPEC-23) |
|
| 210 |
+
| 2025-12-07 | Added clarification: no `type=` param in Gradio 6.0.1 (tuples removed) |
|