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_call api时出错 #146

Open
boquanzhou opened this issue Dec 7, 2023 · 2 comments
Open

调用function_call api时出错 #146

boquanzhou opened this issue Dec 7, 2023 · 2 comments

Comments

@boquanzhou
Copy link

payload:
{
"model": "tigerbot-70b-chat",
"query": "计算 1+1",
"functions": [
{
"name": "eval_math",
"description": "计算数学表达式的值",
"parameters": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "数学表达式"
}
},
"required": [
"expression"
]
}
}
]
}

err:
{
"error": {
"code": 500,
"status": "INTERNAL",
"message": "服务调用异常",
"details": []
}
}

@livelxw
Copy link
Contributor

livelxw commented Dec 7, 2023

已经修复,感谢反馈。

@boquanzhou
Copy link
Author

已经修复,感谢反馈。

这个例子是没问题了,但是如果query比较长,functions也比较多的情况,会返回:
image

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

No branches or pull requests

2 participants