Skip to content

[BUG] ai tool description too long #4439

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

Open
young47 opened this issue Mar 5, 2025 · 0 comments
Open

[BUG] ai tool description too long #4439

young47 opened this issue Mar 5, 2025 · 0 comments
Labels
🐞 bug Something isn't working

Comments

@young47
Copy link

young47 commented Mar 5, 2025

描述你的问题(Describe the bug)
随便让AI写一段代码,比如点击聊天框里默认的“Generate a Java Quicksort Algorithm”,会报错,ai接口直接500,
报错信息如下:
{
"error": {
"message": "Invalid 'tools[7].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1520 instead.",
"type": "invalid_request_error",
"param": "tools[7].function.description",
"code": "string_above_max_length"
}
}

预期表现(Expected behavior)

控制tool的描述的长度

环境信息(Environment)

  • OS: macOS
  • Browser: chrome
  • OpenSumi Version: 不知道是几,反正是main分支直接启动的
@young47 young47 added the 🐞 bug Something isn't working label Mar 5, 2025
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

No branches or pull requests

1 participant