fix:#9222 create or update custum tools error (#9228)

This commit is contained in:
AkisAya 2024-10-11 17:12:30 +08:00 committed by GitHub
commit d7b8e071dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -288,7 +288,7 @@ class ApiBasedToolSchemaParser:
@staticmethod
def auto_parse_to_tool_bundle(
content: str, extra_info: Optional[dict], warning: Optional[dict]
content: str, extra_info: Optional[dict] = None, warning: Optional[dict] = None
) -> tuple[list[ApiToolBundle], str]:
"""
auto parse to tool bundle