Skip to content

Commit

Permalink
update method names
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Oct 29, 2024
1 parent 2fd9f1d commit 75eefa0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lumen/ai/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _exception_handler(exception):
)

if "interface" not in params:
params["interface"] = ChatInterface(callback=self._chat_invoke)
params["interface"] = ChatInterface(callback=self._interface_callback)
super().__init__(**params)
if not self.debug:
pn.config.exception_handler = _exception_handler
Expand All @@ -105,7 +105,7 @@ async def applies(cls) -> bool:
"""
return True

async def _chat_respond(self, contents: list | str, user: str, instance: ChatInterface):
async def _interface_callback(self, contents: list | str, user: str, instance: ChatInterface):
await self.respond(contents)
self._retries_left = 1

Expand Down

0 comments on commit 75eefa0

Please sign in to comment.