mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-20 17:30:59 +00:00
fix: components.yaml encoding error on windows
This commit is contained in:
@@ -139,7 +139,7 @@ class ComponentDiscoveryEngine:
|
|||||||
|
|
||||||
def load_component_manifest(self, path: str, owner: str = 'builtin', no_save: bool = False) -> Component:
|
def load_component_manifest(self, path: str, owner: str = 'builtin', no_save: bool = False) -> Component:
|
||||||
"""加载组件清单"""
|
"""加载组件清单"""
|
||||||
with open(path, 'r') as f:
|
with open(path, 'r', encoding='utf-8') as f:
|
||||||
manifest = yaml.safe_load(f)
|
manifest = yaml.safe_load(f)
|
||||||
comp = Component(
|
comp = Component(
|
||||||
owner=owner,
|
owner=owner,
|
||||||
|
|||||||
Reference in New Issue
Block a user