diff --git a/patches/@mintel__payload-ai@1.9.18.patch b/patches/@mintel__payload-ai@1.9.18.patch index 250b1321..8645ffa4 100644 --- a/patches/@mintel__payload-ai@1.9.18.patch +++ b/patches/@mintel__payload-ai@1.9.18.patch @@ -1,13 +1,13 @@ diff --git a/dist/endpoints/chatEndpoint.js b/dist/endpoints/chatEndpoint.js -index 85a4a2d1ab757e32a303d9f4b2462436af5e2398..23902b2a18eedb583d8a6ee7028c5e855177880b 100644 +index 1f1b2327d8d5d3c57b29fdfaf70bec3a537782c7..be8df4bae39e470f557985bb154be15492f22263 100644 --- a/dist/endpoints/chatEndpoint.js +++ b/dist/endpoints/chatEndpoint.js -@@ -49,7 +49,7 @@ export const handleMcpChat = async (req) => { +@@ -97,7 +97,7 @@ export const handleMcpChat = async (req) => { + : ""; try { const result = streamText({ - // @ts-ignore - AI SDK type mismatch -- model: openrouter('google/gemini-3.0-flash'), -+ model: openrouter('google/gemini-3.1-flash-lite-preview'), +- model: openrouter("google/gemini-3.0-flash"), ++ model: openrouter("google/gemini-3.1-flash-lite-preview"), messages, tools: activeTools, - system: `You are a helpful Payload CMS MCP Assistant orchestrating the local Mintel ecosystem. + // @ts-expect-error - AI SDK type mismatch with maxSteps