xmemory 2.1.1 → 2.1.2
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/README.md +1 -1
- package/dist/instance.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ const result = await inst.write("Bob is a designer based in Berlin.");
|
|
|
124
124
|
console.log(result.write_id, result.trace_id);
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
Options: `{ extractionLogic?, diffEngine?, timeoutMs? }` — `extractionLogic` defaults to `"
|
|
127
|
+
Options: `{ extractionLogic?, diffEngine?, timeoutMs? }` — `extractionLogic` defaults to `"fast"`.
|
|
128
128
|
|
|
129
129
|
### `inst.writeAsync(text, options?)` → `AsyncWriteResult`
|
|
130
130
|
|
package/dist/instance.js
CHANGED
|
@@ -119,7 +119,7 @@ export class InstanceHandle {
|
|
|
119
119
|
async write(text, options) {
|
|
120
120
|
const body = {
|
|
121
121
|
text,
|
|
122
|
-
extraction_logic: options?.extractionLogic ?? "
|
|
122
|
+
extraction_logic: options?.extractionLogic ?? "fast",
|
|
123
123
|
};
|
|
124
124
|
if (options?.diffEngine != null)
|
|
125
125
|
body.diff_engine = options.diffEngine;
|
|
@@ -131,7 +131,7 @@ export class InstanceHandle {
|
|
|
131
131
|
async writeAsync(text, options) {
|
|
132
132
|
const body = {
|
|
133
133
|
text,
|
|
134
|
-
extraction_logic: options?.extractionLogic ?? "
|
|
134
|
+
extraction_logic: options?.extractionLogic ?? "fast",
|
|
135
135
|
};
|
|
136
136
|
if (options?.diffEngine != null)
|
|
137
137
|
body.diff_engine = options.diffEngine;
|
|
@@ -149,7 +149,7 @@ export class InstanceHandle {
|
|
|
149
149
|
async extract(text, options) {
|
|
150
150
|
const body = {
|
|
151
151
|
text,
|
|
152
|
-
extraction_logic: options?.extractionLogic ?? "
|
|
152
|
+
extraction_logic: options?.extractionLogic ?? "fast",
|
|
153
153
|
};
|
|
154
154
|
return this._requestOne("POST", `/instances/${this.id}/extract`, {
|
|
155
155
|
body,
|