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

functioncall 数据集可以定义function多个输出吗? #4362

Closed
1 task done
Harryjun opened this issue Jun 18, 2024 · 1 comment
Closed
1 task done

functioncall 数据集可以定义function多个输出吗? #4362

Harryjun opened this issue Jun 18, 2024 · 1 comment
Labels
solved This problem has been already solved

Comments

@Harryjun
Copy link

Reminder

  • I have read the README and searched the existing issues.

System Info

{
"from": "function_call",
"value": "{"name": "get_word_definition", "arguments": {"word": "本质的"}}"
},

Reproduction

Expected behavior

我看function_call定义的value是一个结果dict,如何定义多个工具请求呢?

Others

No response

@github-actions github-actions bot added the pending This problem is yet to be addressed label Jun 18, 2024
@hiyouga
Copy link
Owner

hiyouga commented Jun 18, 2024

最新版代码可以通过下面的方式定义多个 function:

{
  "from": "function_call",
  "value": "[{\"name\": \"get_word_definition\", \"arguments\": {\"word\": \"本质的\"}}, {\"name\": \"another_function\", \"arguments\": {\"token\": 3}}]"
}

@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels Jun 18, 2024
@hiyouga hiyouga closed this as completed Jun 18, 2024
xtchen96 pushed a commit to xtchen96/LLaMA-Factory that referenced this issue Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

2 participants