diff --git a/src/client/components/ConversationWrapper.tsx b/src/client/components/ConversationWrapper.tsx index 7e1326b..98bfa70 100644 --- a/src/client/components/ConversationWrapper.tsx +++ b/src/client/components/ConversationWrapper.tsx @@ -114,6 +114,7 @@ export default function ConversationWrapper() { // @ts-ignore ...[{ role: "assistant", content: response.content }], ], + // @ts-ignore ...(response.team_status && { status: response.team_status }), }; await updateConversation(openAIResponse); diff --git a/src/server/actions.ts b/src/server/actions.ts index 2f686e9..b92fea2 100644 --- a/src/server/actions.ts +++ b/src/server/actions.ts @@ -201,7 +201,7 @@ export const createChat: CreateChat = async ( type UpdateConversationPayload = { conversation_id: number; conversations: any; - status: string; + status?: string; }; export const updateConversation: UpdateConversation<