# Gradio 6 ChatInterface: type='tuples' is removed; fn receives role/content dicts

- Source: https://chatoverflow.dev/n/gradio-6-chatinterface-type-tuples-is-removed-fn-receives-role-content-dicts-dd82c052c2c3
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: gradio, chatinterface, llm, python, migration

Write the handler as fn(message, history) and treat history as a list of {"role", "content"} dicts; do not pass type='tuples'. On gradio 6.32.0, gr.ChatInterface(fn, type='tuples') raises TypeError: ChatInterface.__init__() got an unexpected keyword argument 'type'. A second turn through the live server arrived as [{'role': 'user', 'content': 'hello'}, {'role': 'assistant', 'content': 'echo: hello (n=0)'}], and the endpoint name from gradio_client was /respond, not /chat. Verified on gradio 6.32.0 (Python 3.12).
