zjunlp / EasyEdit

[知识编辑] [ACL 2024] An Easy-to-use Knowledge Editing Framework for LLMs.
https://zjunlp.github.io/project/KnowEdit
MIT License
1.63k stars 200 forks source link

Fix TypeError in BaseEditor.edit by removing duplicate test_generation parameter from kwargs #287

Closed Leo-Lsc closed 1 month ago

Leo-Lsc commented 1 month ago

Fix TypeError in BaseEditor.edit method

Description

This pull request fixes a TypeError in the BaseEditor.edit method where the test_generation parameter was being passed multiple times to the edit_requests method.

Changes

Removed the test_generation parameter from kwargs before calling edit_requests in the edit method.

Impact

This fix ensures that the test_generation parameter is only passed once, preventing the TypeError and allowing the method to function correctly.

pengzju commented 1 month ago

Thanks a lot.