From ece9ed730d916b24d0b5f1a0342157bc09038702 Mon Sep 17 00:00:00 2001 From: ramnique <30795890+ramnique@users.noreply.github.com> Date: Tue, 28 Jan 2025 07:50:39 +0530 Subject: [PATCH] disable copilot response validation --- apps/rowboat/app/actions.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/rowboat/app/actions.ts b/apps/rowboat/app/actions.ts index 8cf1d126..3c7be773 100644 --- a/apps/rowboat/app/actions.ts +++ b/apps/rowboat/app/actions.ts @@ -523,7 +523,8 @@ export async function getCopilotResponse( content: json.response.replace(/^```json\n/, '').replace(/\n```$/, ''), }); - // assert that msg.content is a CopilotAssistantMessage + /* + // validate response schema assert(msg.role === 'assistant'); if (msg.role === 'assistant') { for (const part of msg.content.response) { @@ -583,6 +584,7 @@ export async function getCopilotResponse( } } } + */ return { message: msg as z.infer,