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

请支持阿里千文的FUNCTION调用 #1242

Closed
4 of 5 tasks
caserzer opened this issue Mar 29, 2024 · 4 comments
Closed
4 of 5 tasks

请支持阿里千文的FUNCTION调用 #1242

caserzer opened this issue Mar 29, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@caserzer
Copy link

例行检查

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

功能描述
看了一下具体的代码, 在阿里调用转换的时候会直接忽略FUNCTION 的调用,而且OAI 在content 中允许‘’ 但是 ALI是不允许的,这块是否能直接增加?
image

应用场景

@caserzer caserzer added the enhancement New feature or request label Mar 29, 2024
@songquanpeng
Copy link
Owner

试一下 v0.6.5-alpha 呢?已经适配了。

@Leo575
Copy link

Leo575 commented Apr 3, 2024

@songquanpeng 这个有bug吧,看阿里云文档,HTTP调用接口中,tools是parameters子节点,而不是与parameters平行节点。
我尝试改了后就调用正常,目前返回不了tool_calls

image

image

试一下 v0.6.5-alpha 呢?已经适配了。

@songquanpeng
Copy link
Owner

感谢指正,已经修复

@pangjianxin
Copy link

还是有问题,好像返回的格式不兼容openai的吧

SheldonLiu0412 pushed a commit to SheldonLiu0412/one-api that referenced this issue Jan 23, 2025
SheldonLiu0412 pushed a commit to SheldonLiu0412/one-api that referenced this issue Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants