mem0ai 2.4.3 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/oss/index.d.mts +14 -0
- package/dist/oss/index.d.ts +14 -0
- package/dist/oss/index.js +6 -0
- package/dist/oss/index.js.map +1 -1
- package/dist/oss/index.mjs +6 -0
- package/dist/oss/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/oss/index.mjs
CHANGED
|
@@ -670,6 +670,12 @@ var Qdrant = class {
|
|
|
670
670
|
}
|
|
671
671
|
if (config.url) {
|
|
672
672
|
params.url = config.url;
|
|
673
|
+
try {
|
|
674
|
+
const parsedUrl = new URL(config.url);
|
|
675
|
+
params.port = parsedUrl.port ? parseInt(parsedUrl.port, 10) : 6333;
|
|
676
|
+
} catch (_) {
|
|
677
|
+
params.port = 6333;
|
|
678
|
+
}
|
|
673
679
|
}
|
|
674
680
|
if (config.host && config.port) {
|
|
675
681
|
params.host = config.host;
|