Browse Source

fix terminal channel

master
6vision 5 months ago
parent
commit
c41ec13984
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      channel/terminal/terminal_channel.py

+ 1
- 0
channel/terminal/terminal_channel.py View File

@@ -78,6 +78,7 @@ class TerminalChannel(ChatChannel):
prompt = trigger_prefixs[0] + prompt # 给没触发的消息加上触发前缀 prompt = trigger_prefixs[0] + prompt # 给没触发的消息加上触发前缀


context = self._compose_context(ContextType.TEXT, prompt, msg=TerminalMessage(msg_id, prompt)) context = self._compose_context(ContextType.TEXT, prompt, msg=TerminalMessage(msg_id, prompt))
context["isgroup"] = False
if context: if context:
self.produce(context) self.produce(context)
else: else:


Loading…
Cancel
Save