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

对接python -m streamlit run .\src\main.py 的客户端需求 #694

Open
zning5506 opened this issue Jan 7, 2025 · 3 comments
Open

对接python -m streamlit run .\src\main.py 的客户端需求 #694

zning5506 opened this issue Jan 7, 2025 · 3 comments
Assignees

Comments

@zning5506
Copy link

Feature request / 功能建议

有没有对接python -m streamlit run .\src\main.py 这个demo的客户端的协议,现在是通过streamlit打开网页的,但是这个网页想自己写,也不是写网页,就是第三方对接,我查看了里面的网页实现的通讯方式是websocket,有没有可能让我们自己去实现websocket去实现这个功能,目前就是不知道协议是怎么组成的

Motivation / 动机

第三方app对接python -m streamlit run .\src\main.py 这个网页服务器,通过websocket去连接,实现对话功能
Uploading SWWXKX33ZNF8_CL2)UCO39X.png…

Your contribution / 您的贡献

SWWXKX33ZNF8_CL2)UCO39X

@zning5506
Copy link
Author

忘了说了,这个路径是 GLM-4\composite_demo

@zRzRzRzRzRzRzR
Copy link
Member

直接用OpenAI API的那个demo + 开源前段实现吧,现在主要的实现方式都是用OpenAI API格式的接口调用模型。我们 的 openai_demo.py 就是拉起模型启OpenAI API格式。

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this Jan 7, 2025
@zning5506
Copy link
Author

GLM-4/composite_demo/src/main.py这个没有接口么,就类似于自己写一个websocket来实现有这个协议内容么,我看了里面的js代码是websocket实现的,还有就是发送的数据是经过了一些逻辑的打包处理的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants