Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradio ChatInterface's API parameter name is not named correctly #10644

Open
1 task done
taoari opened this issue Feb 21, 2025 · 0 comments
Open
1 task done

Gradio ChatInterface's API parameter name is not named correctly #10644

taoari opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working 💬 Chatbot Related to the Chatbot component

Comments

@taoari
Copy link

taoari commented Feb 21, 2025

Describe the bug

def bot_fn(message, history, chat_model):
    return f"Echo: {message}"

For version 4.44.1, the name for API is "chat_model"

Image

But for version 5.17.0, the name for API is "param_2"

Image

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr

Screenshot

No response

Logs

System Info

Gradio Environment Information:
------------------------------
Operating System: Darwin
gradio version: 5.17.0
gradio_client version: 1.7.1

------------------------------------------------
gradio dependencies in your environment:

aiofiles: 23.2.1
anyio: 4.8.0
audioop-lts is not installed.
fastapi: 0.115.8
ffmpy: 0.5.0
gradio-client==1.7.1 is not installed.
httpx: 0.28.1
huggingface-hub: 0.28.1
jinja2: 3.1.5
markupsafe: 2.1.5
numpy: 1.26.4
orjson: 3.10.15
packaging: 24.2
pandas: 2.2.3
pillow: 11.1.0
pydantic: 2.10.6
pydub: 0.25.1
python-multipart: 0.0.20
pyyaml: 6.0.2
ruff: 0.9.7
safehttpx: 0.1.6
semantic-version: 2.10.0
starlette: 0.45.3
tomlkit: 0.13.2
typer: 0.15.1
typing-extensions: 4.12.2
urllib3: 2.3.0
uvicorn: 0.34.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.


gradio_client dependencies in your environment:

fsspec: 2025.2.0
httpx: 0.28.1
huggingface-hub: 0.28.1
packaging: 24.2
typing-extensions: 4.12.2
websockets: 14.2

Severity

I can work around it

@taoari taoari added the bug Something isn't working label Feb 21, 2025
@abidlabs abidlabs added the 💬 Chatbot Related to the Chatbot component label Feb 21, 2025
@abidlabs abidlabs changed the title Gradio API parameter name is not named correctly Gradio ChatInterface's API parameter name is not named correctly Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 💬 Chatbot Related to the Chatbot component
Projects
None yet
Development

No branches or pull requests

2 participants