mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 23:36:02 +00:00
fix: /user/check-token api not work
This commit is contained in:
@@ -260,7 +260,7 @@ class ComponentDiscoveryEngine:
|
||||
def get_components_by_kind(self, kind: str) -> typing.List[Component]:
|
||||
"""获取指定类型的组件"""
|
||||
if kind not in self.components:
|
||||
raise ValueError(f'No components found for kind: {kind}')
|
||||
return []
|
||||
return self.components[kind]
|
||||
|
||||
def find_components(self, kind: str, component_list: typing.List[Component]) -> typing.List[Component]:
|
||||
|
||||
Reference in New Issue
Block a user