feat(openai): add event to incoming messages
Appended the event to the incoming messages list to ensure it gets processed. This change addresses situations where events were previously being overlooked, potentially leading to incomplete or incorrect processing. This enhancement ensures a more comprehensive handling of incoming data.
This commit is contained in:
parent
56b4f3617c
commit
5378ac39e4
1 changed files with 2 additions and 0 deletions
|
@ -175,6 +175,8 @@ class OpenAI(BaseAI):
|
||||||
|
|
||||||
self.logger.log(f"Incoming messages: {messages}", "debug")
|
self.logger.log(f"Incoming messages: {messages}", "debug")
|
||||||
|
|
||||||
|
messages.append(event)
|
||||||
|
|
||||||
for message in messages:
|
for message in messages:
|
||||||
if isinstance(message, (RoomMessageNotice, RoomMessageText)):
|
if isinstance(message, (RoomMessageNotice, RoomMessageText)):
|
||||||
role = (
|
role = (
|
||||||
|
|
Loading…
Reference in a new issue