如题,我将模型切换为GPT5.5后,好像在cherry中的网络搜索开启后,不管是google,还是Bing,还是tavily,就一直无法调用成功的。
看了一下里面的请求信息是:
{
"type": "function",
"function": {
"name": "builtin_web_search",
"description": "Web search tool for finding current information, news, and real-time data from the internet.\n\nThis tool has been configured with search parameters based on the conversation context:\n- Prepared queries: \"Harness Engineering 是什么,harness engineering 定义、应用领域、行业现状、技术流程、发展趋势调研报告\"\n\nYou can use this tool as-is to search with the prepared queries, or provide additionalContext to refine or replace the search terms.",
"parameters": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"additionalContext": {
"description": "Optional additional context, keywords, or specific focus to enhance the search",
"type": "string"
}
},
"additionalProperties": false
}
}
}
报错信息为:
{
"error": {
"message": "{\n \"error\": {\n \"message\": \"Invalid schema for function 'builtin_web_search': None is not of type 'array'.\",\n \"type\": \"invalid_request_error\",\n \"param\": \"tools[5].parameters\",\n \"code\": \"invalid_function_parameters\"\n }\n}(traceid: 46de26f7bc24ae186b03ec0e5137ec7e)",
"type": "invalid_request_error",
"param": "",
"code": null
}
}
没有看出来,到底是为什么呢? ![]()
应该模型问题,模型换成了gork后,搜索功能是正常的!切换成GPT就不行 ![]()
5 个帖子 - 3 位参与者