Skip to content

Commit

Permalink
fix: type usage (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 12, 2024
1 parent 63436cf commit d106515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/context/providers/MessageProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { type FC, type PropsWithChildren, useEffect, useState } from "react";
import { StoreApi, create } from "zustand";
import type {
AppendUserContentPart,
CoreUserContentPart,
ThreadMessage,
} from "../../types/AssistantTypes";
import { getMessageText } from "../../utils/getMessageText";
Expand Down Expand Up @@ -81,7 +81,7 @@ const useMessageContext = (messageIndex: number) => {
);

const nonTextParts = message.content.filter(
(part): part is AppendUserContentPart =>
(part): part is CoreUserContentPart =>
part.type !== "text" && part.type !== "ui",
);
useThreadActions.getState().append({
Expand Down

0 comments on commit d106515

Please sign in to comment.