Browse Source

Update src/index.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Zaradacht Taifour (Zack) 1 month ago
parent
commit
52d2e76c5d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/index.ts

+ 1 - 2
src/index.ts

@@ -1037,8 +1037,7 @@ const OhMyOpenCodeLite: Plugin = async (ctx) => {
       input: Record<string, never>,
       output: { messages: unknown[] },
     ): Promise<void> => {
-      const typedOutput = output as { messages: unknown[] };
-      const messages = typedOutput.messages.filter(isMessageWithParts);
+      const messages = output.messages.filter(isMessageWithParts);
 
       for (const message of messages) {
         if (!isUserMessageWithParts(message)) {