-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add gradio chatbot for openai webserver #2307
Add gradio chatbot for openai webserver #2307
Conversation
I wanted to mention I've been using LibreChat for a little while now against my models hosted using vLLM OpenAI API. It's not as simple as a single file python app, but I found that it works really, really well as a ChatGPT replacement, which I can not say about things like Gradio interfaces. Since other interfaces are finally becoming available that can integrate with the standard APIs provided, It may be smarter for the project to link to those compatible interfaces, with simple setup instructions. The more code you have in the repo that isn't the main purpose of the project, the harder it is to maintain high quality code and quickly deliver features. |
You are right. I will not use a single file like this in my daily work. I just found that a small test file for the openai api is really convenient in the same repository. And there is already one file https://github.com/vllm-project/vllm/blob/main/examples/gradio_webserver.py for the api testing. So feel free to close this PR if you think it is not following the main purpose of the project. And I really understand the reason. |
I personally agree with this PR, but why not in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move it to examples/gradio_openai_chatbot_webserver.py
?
It's done. |
Do I need to do any other update? @zhuohan123 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thank you for your contribution!
Follow the example of https://github.com/vllm-project/vllm/blob/main/examples/gradio_webserver.py I create a gradio webserver for openai api server.
Right now I find that OpenAI-compatible api server has more features than the default webserver and is much more popular. This script will create a chatbot to test the web server.
Here is a command example:
Here is the screenshot: