core
core copied to clipboard
[BUG] ai tool description too long
描述你的问题(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分支直接启动的