Skip to content

Commit

Permalink
fixbug: .well_known
Browse files Browse the repository at this point in the history
  • Loading branch information
莘权 马 committed Jan 5, 2024
1 parent 43d07de commit 4eab58f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/.agent-store-config.yaml.example
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
role:
name: Teacher # Referenced the `Teacher` in `metagpt/roles/teacher.py`.
module: metagpt.roles.teacher # Referenced `metagpt/roles/teacher.py`.
skills: # Refer to the skill `name` of the published skill in `.well-known/skills.yaml`.
skills: # Refer to the skill `name` of the published skill in `docs/.well-known/skills.yaml`.
- name: text_to_speech
description: Text-to-speech
- name: text_to_image
Expand Down
2 changes: 1 addition & 1 deletion metagpt/learn/skill_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class SkillsDeclaration(BaseModel):
@staticmethod
async def load(skill_yaml_file_name: Path = None) -> "SkillsDeclaration":
if not skill_yaml_file_name:
skill_yaml_file_name = Path(__file__).parent.parent.parent / ".well-known/skills.yaml"
skill_yaml_file_name = Path(__file__).parent.parent.parent / "docs/.well-known/skills.yaml"
async with aiofiles.open(str(skill_yaml_file_name), mode="r") as reader:
data = await reader.read(-1)
skill_data = yaml.safe_load(data)
Expand Down

0 comments on commit 4eab58f

Please sign in to comment.