-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
0.3版网络搜索报错 #4359
Comments
大佬们请指教 |
same issue: Traceback (most recent call last): |
server--agent--tools_factory--tools_registry.py _new_parse_input
|
使用的llm是哪个?看日志应该是传参错误,这里的tool封装,容易把description当做参数传递,就会抱错。 |
用的qwen-chat 我明天换qwen2试试 |
已经配置好bing_key
def new_parse_input(
self,
tool_input: Union[str, Dict],
) -> Union[str, Dict[str, Any]]:
"""Convert tool input to pydantic model."""
input_args = self.args_schema
print('bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb')
print(input_args) #<class 'pydantic.v1.main.search_internetSchema'> 但是这个类根本没找到从哪来的
print(tool_input) #{'query': {'title': '大模型最新消息', 'description': '大模型最近的新闻和发展', 'type': 'string'}}
if isinstance(tool_input, str):
if input_args is not None:
key = next(iter(input_args.fields.keys()))
input_args.validate({key_: tool_input})
return tool_input
else:
if input_args is not None:
result = input_args.parse_obj(tool_input) #报错的地方
return result.dict()
The text was updated successfully, but these errors were encountered: