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

拆分embeddings query为多次请求 #189

Merged
merged 2 commits into from
Jun 24, 2023

Conversation

yangguang760
Copy link
Contributor

修改原因:
1、单次请求内容太多容易超时
2、azure的embeddings api不支持多个输入,变通方法是采用cloudflare的worker将一次请求分为多个子请求再拼接返回;但是cloudflare有子请求数量限制(50个)

由于本人没有编译/运行环境,纯手撸了个PR,烦请作者大大review并测试一下
如果这个PRmerge了, 后续我再出一个用 azure api + cloudflare 的文档; 目前其它功能都测试好使,就差这个了

@MuiseDestiny
Copy link
Owner

辛苦!

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

Successfully merging this pull request may close these issues.

2 participants