Skip to content

[BUG] ai tool description too long #4439

Open

Description

@young47

描述你的问题(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分支直接启动的

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions