@blueharford/scrypted-spatial-awareness 0.6.28 → 0.6.30
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/main.nodejs.js +1 -1
- package/dist/main.nodejs.js.map +1 -1
- package/dist/plugin.zip +0 -0
- package/out/main.nodejs.js +7 -7
- package/out/main.nodejs.js.map +1 -1
- package/out/plugin.zip +0 -0
- package/package.json +1 -1
- package/src/main.ts +7 -7
package/out/plugin.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/main.ts
CHANGED
|
@@ -238,12 +238,12 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
|
|
|
238
238
|
},
|
|
239
239
|
|
|
240
240
|
// Integrations
|
|
241
|
-
|
|
241
|
+
llmProviders: {
|
|
242
242
|
title: 'LLM Providers',
|
|
243
243
|
type: 'device',
|
|
244
244
|
multiple: true,
|
|
245
245
|
deviceFilter: `interfaces.includes('ChatCompletion')`,
|
|
246
|
-
description: 'Select
|
|
246
|
+
description: 'Select which LLM providers to use (e.g., OpenAI, Claude, Ollama). Multiple providers will be load-balanced to avoid rate limits.',
|
|
247
247
|
group: 'Integrations',
|
|
248
248
|
},
|
|
249
249
|
defaultNotifiers: {
|
|
@@ -363,7 +363,7 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
|
|
|
363
363
|
loiteringThreshold: (this.storageSettings.values.loiteringThreshold as number || 3) * 1000,
|
|
364
364
|
objectAlertCooldown: (this.storageSettings.values.objectAlertCooldown as number || 30) * 1000,
|
|
365
365
|
useLlmDescriptions: this.storageSettings.values.useLlmDescriptions as boolean ?? true,
|
|
366
|
-
llmDeviceIds: this.
|
|
366
|
+
llmDeviceIds: this.parseLlmProviders(),
|
|
367
367
|
llmDebounceInterval: (this.storageSettings.values.llmDebounceInterval as number || 30) * 1000,
|
|
368
368
|
llmFallbackEnabled: this.storageSettings.values.llmFallbackEnabled as boolean ?? true,
|
|
369
369
|
llmFallbackTimeout: (this.storageSettings.values.llmFallbackTimeout as number || 3) * 1000,
|
|
@@ -418,9 +418,9 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
|
|
421
|
-
/** Parse LLM
|
|
422
|
-
private
|
|
423
|
-
const value = this.storageSettings.values.
|
|
421
|
+
/** Parse LLM providers from settings - handles both array and single value formats */
|
|
422
|
+
private parseLlmProviders(): string[] | undefined {
|
|
423
|
+
const value = this.storageSettings.values.llmProviders;
|
|
424
424
|
if (!value) return undefined;
|
|
425
425
|
|
|
426
426
|
// Handle array format
|
|
@@ -754,7 +754,7 @@ export class SpatialAwarenessPlugin extends ScryptedDeviceBase
|
|
|
754
754
|
key === 'llmDebounceInterval' ||
|
|
755
755
|
key === 'llmFallbackEnabled' ||
|
|
756
756
|
key === 'llmFallbackTimeout' ||
|
|
757
|
-
key === '
|
|
757
|
+
key === 'llmProviders' ||
|
|
758
758
|
key === 'enableTransitTimeLearning' ||
|
|
759
759
|
key === 'enableConnectionSuggestions' ||
|
|
760
760
|
key === 'enableLandmarkLearning' ||
|