-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
💄 style: add function call support for Spark #5039
base: main
Are you sure you want to change the base?
Conversation
@hezhijie0327 is attempting to deploy a commit to the LobeHub Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for raising your pull request and contributing to our Community |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5039 +/- ##
==========================================
- Coverage 91.97% 91.58% -0.40%
==========================================
Files 548 549 +1
Lines 41408 41612 +204
Branches 2355 2354 -1
==========================================
+ Hits 38087 38110 +23
- Misses 3321 3502 +181
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这块是不是最好看下哪里需要给工厂函数开槽的,给开个槽?单独实现一个感觉后续的维护成本比较高
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
补齐之前 Spark 缺少的 function call 的实现
max-32k
模型支持工具回调外,其余均不支持(curl
调用测试也为空;max-32k
存在相同 payload,上一秒还能出内容,再次执行直接返回空的问题)transformSparkStream
transformSparkResponseToStream
Spark 的工具调用流很怪,返回的是对象不是数组,通过魔改 OpenAI 流处理对非标准返回强制转换为数组
PS: 给讯飞开了工单,将近三个多月无进展
📝 补充信息 | Additional Information
非流式响应流
流式输出响应流