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

流式接口没生效,还是阻塞然后一下全返回 #6

Open
huweidong-meta opened this issue Feb 28, 2024 · 4 comments
Open

流式接口没生效,还是阻塞然后一下全返回 #6

huweidong-meta opened this issue Feb 28, 2024 · 4 comments

Comments

@huweidong-meta
Copy link

测试用例里的流接口调用,发现数据并不是一个一个返回,而是卡住一起返回,没有流式的效果。

@fuzhengwei
Copy link
Owner

具体哪个测试方法粘贴下代码

@huweidong-meta
Copy link
Author

/**
* 流式对话;
* 1. 与 test_completions 测试类相比,只是设置 isCompatible = false 这样就是使用了新的数据结构。onEvent 处理接收数据有差异
* 2. 不兼容旧版格式的话,仅支持 GLM_3_5_TURBO、GLM_4 其他模型会有解析错误
*/
@test
public void test_completions_new() throws Exception {

@Clearpole
Copy link

确实

@menlalily
Copy link

具体哪个测试方法粘贴下代码
test_completions_new
这个方法,目前问题应该还没解决

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

4 participants