We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
举例:
forest:
.addOnEvent((eventSource, name, value) -> { log.info("name: " + name + ", value: " + value); log.info("eventSource: " + eventSource.response().getContent()); }) .addOnData((eventSource, name, value) -> { log.info("name: " + name + ", value: " + value); log.info("eventSource: " + eventSource.response().getContent()); })
在 event data 分开返回的 我要自己一个个判断数据 我没法把 chat 和 reference的内容分开
okhttp: public void onEvent(@NotNull EventSource eventSource, String id, String type, @NotNull String data) {
okhttp 只要根据type 我就能区分 是 chat 还是 reference
我期望2条数据给我的时候是一条
The text was updated successfully, but these errors were encountered:
No branches or pull requests
举例:
forest:
在 event data 分开返回的 我要自己一个个判断数据 我没法把 chat 和 reference的内容分开
okhttp:
public void onEvent(@NotNull EventSource eventSource, String id, String type, @NotNull String data) {
okhttp 只要根据type 我就能区分 是 chat 还是 reference
我期望2条数据给我的时候是一条
The text was updated successfully, but these errors were encountered: