{"id":21069476,"url":"https://github.com/lissettecarlr/chat-openai-streamlit","last_synced_at":"2025-06-13T05:37:20.205Z","repository":{"id":212196074,"uuid":"730566334","full_name":"lissettecarlr/chat-openai-streamlit","owner":"lissettecarlr","description":"基于streamlit编写的针对openai接口的各类模型对话web应用，目前支持基本对话、文生图、图片理解、assistants（Web application for various models' dialogue based on the OpenAI API, written in Streamlit,assistants）","archived":false,"fork":false,"pushed_at":"2024-05-14T08:24:44.000Z","size":2854,"stargazers_count":21,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T11:14:32.544Z","etag":null,"topics":["chatbot","chatgpt","gui","openai","openai-api","python","streamlit"],"latest_commit_sha":null,"homepage":"https://chat-openai-app.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lissettecarlr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-12-12T07:50:56.000Z","updated_at":"2025-05-09T03:18:15.000Z","dependencies_parsed_at":"2024-01-04T02:16:31.276Z","dependency_job_id":"ef8dd905-f44d-4329-a569-3e4cc3c1a14f","html_url":"https://github.com/lissettecarlr/chat-openai-streamlit","commit_stats":null,"previous_names":["lissettecarlr/chat-openai-streamlit"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lissettecarlr/chat-openai-streamlit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lissettecarlr%2Fchat-openai-streamlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lissettecarlr%2Fchat-openai-streamlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lissettecarlr%2Fchat-openai-streamlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lissettecarlr%2Fchat-openai-streamlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lissettecarlr","download_url":"https://codeload.github.com/lissettecarlr/chat-openai-streamlit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lissettecarlr%2Fchat-openai-streamlit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259590619,"owners_count":22881204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","chatgpt","gui","openai","openai-api","python","streamlit"],"created_at":"2024-11-19T18:35:40.505Z","updated_at":"2025-06-13T05:37:20.135Z","avatar_url":"https://github.com/lissettecarlr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[English](./README_EN.md) | [中文](./README.md)\n\n![Python](https://img.shields.io/badge/Python-FFD43B?style=for-the-badge\u0026logo=python\u0026logoColor=blue)\n![Streamlit](https://img.shields.io/badge/Streamlit-FF4B4B?style=for-the-badge\u0026logo=Streamlit\u0026logoColor=white)\n![openai](https://img.shields.io/badge/openai-0000FF?style=for-the-badge\u0026logo=openai\u0026logoColor=white)\n\n[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://chat-openai-app.streamlit.app/)\n\n# chat-openai-streamlit\n\n基于streamlit编写的针对openai接口的各类模型对话web应用，目前支持基本对话、文生图、图片理解、assistants、语音转文、文转语言。\n\n\n## 0. 目标\n\n- [x] 支持Chat Completions API 的页面，进行文本对话\n- [x] 支持Vision的页面，进行图像理解\n- [x] 支持Image generation的页面，进行图片生成\n- [x] 支持Assistants的页面，进行助理对话\n- [x] 支持语言转文本的页面\n- [x] 支持文本转语音的页面 \n\n其他添加的小功能\n\n- [x] chat页面每次对话后显示耗时（配置文件中控制开关）\n- [x] chat页面每次对话后显示消耗的token数（配置文件中控制开关）\n- [x] 对whisper的输出添加过滤。（当这模型输入是没有内容的音频时，会输出一些字幕广告）\n- [x] 给chat页面增加了预设提示词，可以在配置文件中自定义\n- [x] 在draw页面添加了`revised_prompt`的显示，它保存了对你提示词的修改结果\n\n更新\n* 2024-05-14 gpt-4o 对话界面\n\n\n## 1 使用\n\n### 直接运行\n\n```bash\npip install -r requirements.txt\nstreamlit run ./src/home.py --server.port 1234\n```\n\n### docker\n```bash\nsudo docker run -d -p 10000:10000 --name openai-web lissettecarlr/openai-web-streamlit:v0.2\n```\n\n## 3. 效果图\n下列效果图估计不是最新，最新的示例可以看[这里](https://chat-openai-app.streamlit.app/)\n\n![1](./file/1.gif)\n\n\n## 4. 配置文件\n\n默认参数配置文件在`src/config/default.json`中，这里主要说明自定义的参数：\n* models：chat页面上的下拉菜单显示的模型\n* num_tokens：是否显示每次对话消耗的token数\n* use_time：是否显示每次对话消耗的时间\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flissettecarlr%2Fchat-openai-streamlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flissettecarlr%2Fchat-openai-streamlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flissettecarlr%2Fchat-openai-streamlit/lists"}