Compare commits

...

3 Commits

Author SHA1 Message Date
Thuc Pham 7f988f4e09 fix: move groq-sdk to external webpack 2024-09-13 11:41:03 +07:00
Thuc Pham 38584f128b Create chilled-bottles-prove.md 2024-09-12 21:21:46 +07:00
Thuc Pham 473ef072a3 fix: cannot import groq-sdk in nextjs 2024-09-12 21:21:14 +07:00
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"llamaindex": patch
---
fix: cannot import groq-sdk in nextjs
+1 -1
View File
@@ -37,13 +37,13 @@ export default function withLlamaIndex(config: any) {
webpackConfig.resolve.alias = {
...webpackConfig.resolve.alias,
"@google-cloud/vertexai": false,
"groq-sdk": false,
};
// Following lines will fix issues with onnxruntime-node when using pnpm
// See: https://github.com/vercel/next.js/issues/43433
webpackConfig.externals.push({
"onnxruntime-node": "commonjs onnxruntime-node",
sharp: "commonjs sharp",
"groq-sdk": "commonjs groq-sdk",
});
return webpackConfig;
};