mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
fixbug: pydantic validate
This commit is contained in:
parent
273b85d609
commit
b612393151
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ class FileRepository:
|
|||
await dependency_file.update(pathname, set(dependencies))
|
||||
logger.info(f"update dependency: {str(pathname)}:{dependencies}")
|
||||
|
||||
return Document(root_path=str(self._relative_path), filename=filename, content=content)
|
||||
return Document(root_path=str(self._relative_path), filename=str(filename), content=content)
|
||||
|
||||
async def get_dependency(self, filename: Path | str) -> Set[str]:
|
||||
"""Get the dependencies of a file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue