gheim 0.1.9 → 0.1.10
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/cjs/index.cjs
CHANGED
|
@@ -355,7 +355,7 @@ function snapToWords(text, spans) {
|
|
|
355
355
|
|
|
356
356
|
// src/detectors/remote.ts
|
|
357
357
|
var DEFAULT_BASE_URL = "https://api.gheim.ch";
|
|
358
|
-
var DEFAULT_MODEL = "
|
|
358
|
+
var DEFAULT_MODEL = "joelbarmettler/gheim-ch-560m";
|
|
359
359
|
|
|
360
360
|
class RemoteDetector {
|
|
361
361
|
baseUrl;
|
|
@@ -240,7 +240,7 @@ function snapToWords(text, spans) {
|
|
|
240
240
|
|
|
241
241
|
// src/detectors/remote.ts
|
|
242
242
|
var DEFAULT_BASE_URL = "https://api.gheim.ch";
|
|
243
|
-
var DEFAULT_MODEL = "
|
|
243
|
+
var DEFAULT_MODEL = "joelbarmettler/gheim-ch-560m";
|
|
244
244
|
|
|
245
245
|
class RemoteDetector {
|
|
246
246
|
baseUrl;
|
package/dist/esm/index.js
CHANGED
|
@@ -289,7 +289,7 @@ function snapToWords(text, spans) {
|
|
|
289
289
|
|
|
290
290
|
// src/detectors/remote.ts
|
|
291
291
|
var DEFAULT_BASE_URL = "https://api.gheim.ch";
|
|
292
|
-
var DEFAULT_MODEL = "
|
|
292
|
+
var DEFAULT_MODEL = "joelbarmettler/gheim-ch-560m";
|
|
293
293
|
|
|
294
294
|
class RemoteDetector {
|
|
295
295
|
baseUrl;
|
package/dist/esm/openai/index.js
CHANGED
|
@@ -189,7 +189,7 @@ function snapToWords(text, spans) {
|
|
|
189
189
|
|
|
190
190
|
// src/detectors/remote.ts
|
|
191
191
|
var DEFAULT_BASE_URL = "https://api.gheim.ch";
|
|
192
|
-
var DEFAULT_MODEL = "
|
|
192
|
+
var DEFAULT_MODEL = "joelbarmettler/gheim-ch-560m";
|
|
193
193
|
|
|
194
194
|
class RemoteDetector {
|
|
195
195
|
baseUrl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Remote detector — calls a gheim-server (or compatible) over HTTP. */
|
|
2
2
|
import { type Detector, type Span } from "./base.ts";
|
|
3
3
|
export declare const DEFAULT_BASE_URL = "https://api.gheim.ch";
|
|
4
|
-
export declare const DEFAULT_MODEL = "
|
|
4
|
+
export declare const DEFAULT_MODEL = "joelbarmettler/gheim-ch-560m";
|
|
5
5
|
export interface RemoteDetectorOptions {
|
|
6
6
|
baseUrl?: string;
|
|
7
7
|
apiKey?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../src/detectors/remote.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAY,MAAM,WAAW,CAAC;AAE/D,eAAO,MAAM,gBAAgB,yBAAyB,CAAC;AACvD,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"remote.d.ts","sourceRoot":"","sources":["../../../src/detectors/remote.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAY,MAAM,WAAW,CAAC;AAE/D,eAAO,MAAM,gBAAgB,yBAAyB,CAAC;AACvD,eAAO,MAAM,aAAa,iCAAiC,CAAC;AAE5D,MAAM,WAAW,qBAAqB;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACtB;AAED,qBAAa,cAAe,YAAW,QAAQ;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAS;IAC/B,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAU;IACzC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;gBAE7B,IAAI,GAAE,qBAA0B;IAUtC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC;CA+BvE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gheim",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "PII round-trip for LLM APIs: anonymize before the request, de-anonymize the stream on the way back.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Joel Barmettler <joel.barmettler@gmail.com>",
|