Skip to content

Commit 4eab58f

Browse files
author
莘权 马
committed
fixbug: .well_known
1 parent 43d07de commit 4eab58f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/.agent-store-config.yaml.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
role:
22
name: Teacher # Referenced the `Teacher` in `metagpt/roles/teacher.py`.
33
module: metagpt.roles.teacher # Referenced `metagpt/roles/teacher.py`.
4-
skills: # Refer to the skill `name` of the published skill in `.well-known/skills.yaml`.
4+
skills: # Refer to the skill `name` of the published skill in `docs/.well-known/skills.yaml`.
55
- name: text_to_speech
66
description: Text-to-speech
77
- name: text_to_image

metagpt/learn/skill_loader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class SkillsDeclaration(BaseModel):
6767
@staticmethod
6868
async def load(skill_yaml_file_name: Path = None) -> "SkillsDeclaration":
6969
if not skill_yaml_file_name:
70-
skill_yaml_file_name = Path(__file__).parent.parent.parent / ".well-known/skills.yaml"
70+
skill_yaml_file_name = Path(__file__).parent.parent.parent / "docs/.well-known/skills.yaml"
7171
async with aiofiles.open(str(skill_yaml_file_name), mode="r") as reader:
7272
data = await reader.read(-1)
7373
skill_data = yaml.safe_load(data)

0 commit comments

Comments
 (0)