首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >planner执行plan出错,提示“invalid param top_p is invalid”,如何解决?

planner执行plan出错,提示“invalid param top_p is invalid”,如何解决?

提问于 2024-08-30 21:13:38
回答 0关注 0查看 6
代码语言:javascript
复制
kernel.add_plugin(MathPlugin(), "math")
planner = SequentialPlanner(kernel, settings.global_DOMAIN)
query = "1+1=?"
async def do():
    plan = await planner.create_plan(goal=query)
    result = await plan.invoke(kernel)

raise FunctionExecutionException(f"Error occurred while invoking function {self.name}: {exc}") from exc

semantic_kernel.exceptions.function_exceptions.FunctionExecutionException: Error occurred while invoking function SequentialPlanner_Excluded: ("<class 'semantic_kernel.connectors.ai.open_ai.services.open_ai_chat_completion.OpenAIChatCompletion'> service failed to complete the prompt", BadRequestError("Error code: 400 - {'error': {'message': 'invalid param top_p is invalid (sid: xxxx', 'type': 'invalid_request_error', 'param': None, 'code': '10005'}}"))

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档