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

[TODO] run pi server #333

Open
MistEO opened this issue Sep 13, 2024 · 6 comments
Open

[TODO] run pi server #333

MistEO opened this issue Sep 13, 2024 · 6 comments
Labels
enhancement New feature or request

Comments

@MistEO
Copy link
Member

MistEO commented Sep 13, 2024

No description provided.

@MistEO MistEO added the enhancement New feature or request label Sep 16, 2024
@neko-para
Copy link
Contributor

run pi server逻辑上应该是用来让ui能够简单实现pi cli的能力?
那接口是不是和之前那个改造pi成库的逻辑类似?但是那玩意本身用起来实在是费劲欸
以及,如果pi的数据依然全部在fw内部的话,除非搞很多接口来查,否则ui渲染起来很麻烦

@MistEO
Copy link
Member Author

MistEO commented Oct 6, 2024

run pi server逻辑上应该是用来让ui能够简单实现pi cli的能力?
那接口是不是和之前那个改造pi成库的逻辑类似?但是那玩意本身用起来实在是费劲欸
以及,如果pi的数据依然全部在fw内部的话,除非搞很多接口来查,否则ui渲染起来很麻烦

http 嘛,直接把结构体序列化成 json 扔过去好了

@neko-para
Copy link
Contributor

neko-para commented Oct 6, 2024

http还是ws啊(
主要是感觉本身最多就是个rpc,好像搞http也没啥必要

@neko-para
Copy link
Contributor

(其实有点想看看能不能把server的能力强化成能支持非pi的模型,但是没想清楚是个啥情况

@MistEO
Copy link
Member Author

MistEO commented Oct 7, 2024

http还是ws啊( 主要是感觉本身最多就是个rpc,好像搞http也没啥必要

http 啊,这个是给集成方的,得方便好用一点(

或许回调消息可以单独弄个 ws?之后再看看

@neko-para
Copy link
Contributor

http还是ws啊( 主要是感觉本身最多就是个rpc,好像搞http也没啥必要

http 啊,这个是给集成方的,得方便好用一点(

或许回调消息可以单独弄个 ws?之后再看看

主要是http未必简单,如果只是简单的rpc接口的话ws还直接一点(
另外就是如果有回调的话http大概就考虑event stream了

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

No branches or pull requests

2 participants