Skip to content

"Error: TypeError('_new_to_args_and_kwargs() takes 2 positional arguments but 3 were given') Please fix your mistakes." #98

@cloudyliu1

Description

@cloudyliu1

在使用RAG方式问答时提示错误:
"Error: TypeError('_new_to_args_and_kwargs() takes 2 positional arguments but 3 were given')
Please fix your mistakes."
修改_new_to_args_and_kwargs,临时加入了id参数后不再提示错误,请问id做何用?如何根本解决问题,谢谢!
def _new_to_args_and_kwargs(self, id, tool_input: Union[str, Dict]) -> Tuple[Tuple, Dict]:

Metadata

Metadata

Assignees

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