Error: HTTP error! status: 500 - {"error":"Cannot use import statement outside a module\n\nThis runtime does not support fastembed-js, which is the default embedder in Mastra. \nScroll up to read import errors. These errors mean you can't use the default Mastra embedder on this hosting platform.\nYou can either use Mastra Cloud which supports the default embedder, or you can configure an alternate provider.\n\nFor example if you're using Memory:\n\nimport { openai } from "@ai-sdk/openai";\n\nconst memory = new Memory({\n embedder: openai.embedding("text-embedding-3-small"), // <- doesn't have to be openai\n})\n\nVisit https://sdk.vercel.ai/docs/foundations/overview#embedding-models to find an alternate embedding provider\n\nIf you do not want to use the Memory semantic recall feature, you can disable it entirely and this error will go away.\n\nconst memory = new Memory({\n options: {\n semanticRecall: false // <- an embedder will not be required with this set to false\n }\n})\n"}
Error: HTTP error! status: 500 - {"error":"Cannot use import statement outside a module\n\nThis runtime does not support fastembed-js, which is the default embedder in Mastra. \nScroll up to read import errors. These errors mean you can't use the default Mastra embedder on this hosting platform.\nYou can either use Mastra Cloud which supports the default embedder, or you can configure an alternate provider.\n\nFor example if you're using Memory:\n\nimport { openai } from "@ai-sdk/openai";\n\nconst memory = new Memory({\n embedder: openai.embedding("text-embedding-3-small"), // <- doesn't have to be openai\n})\n\nVisit https://sdk.vercel.ai/docs/foundations/overview#embedding-models to find an alternate embedding provider\n\nIf you do not want to use the Memory semantic recall feature, you can disable it entirely and this error will go away.\n\nconst memory = new Memory({\n options: {\n semanticRecall: false // <- an embedder will not be required with this set to false\n }\n})\n"}