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

关于讯飞星火模型的一些问题 #1524

Closed
5 tasks done
laxtiz opened this issue Jun 12, 2024 · 0 comments · Fixed by #1526
Closed
5 tasks done

关于讯飞星火模型的一些问题 #1524

laxtiz opened this issue Jun 12, 2024 · 0 comments · Fixed by #1526
Labels
bug Something isn't working

Comments

@laxtiz
Copy link
Contributor

laxtiz commented Jun 12, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,尤其是常见问题部分
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

问题描述

  1. 不支持Spark Lite 免费模型

原因是Function Calling只适配 Spark Pro 和 Spark Max
然而请求参数转格式时,默认包含了Payload.Functions 空字典,v1.1接口会报错

  1. Spark Pro/Max 也不支持函数调用

原因是逻辑写错了,将原始请求的functions结构抛弃了

  1. 修改了逻辑依然不支持 LangChain 的 model.bind_tools

原因是,讯飞星火模型不支持 tool 角色,请求消息里的 tool 消息无法识别

复现步骤

预期结果

前两点可以解决,第三个没办法,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant