@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/plugin.zip CHANGED
Binary file
@@ -39465,12 +39465,12 @@ class SpatialAwarenessPlugin extends sdk_1.ScryptedDeviceBase {
39465
39465
  group: 'MQTT Integration',
39466
39466
  },
39467
39467
  // Integrations
39468
- llmDevices: {
39468
+ llmProviders: {
39469
39469
  title: 'LLM Providers',
39470
39470
  type: 'device',
39471
39471
  multiple: true,
39472
39472
  deviceFilter: `interfaces.includes('ChatCompletion')`,
39473
- description: 'Select one or more LLM providers for smart descriptions. Multiple providers will be load-balanced.',
39473
+ description: 'Select which LLM providers to use (e.g., OpenAI, Claude, Ollama). Multiple providers will be load-balanced to avoid rate limits.',
39474
39474
  group: 'Integrations',
39475
39475
  },
39476
39476
  defaultNotifiers: {
@@ -39576,7 +39576,7 @@ class SpatialAwarenessPlugin extends sdk_1.ScryptedDeviceBase {
39576
39576
  loiteringThreshold: (this.storageSettings.values.loiteringThreshold || 3) * 1000,
39577
39577
  objectAlertCooldown: (this.storageSettings.values.objectAlertCooldown || 30) * 1000,
39578
39578
  useLlmDescriptions: this.storageSettings.values.useLlmDescriptions ?? true,
39579
- llmDeviceIds: this.parseLlmDevices(),
39579
+ llmDeviceIds: this.parseLlmProviders(),
39580
39580
  llmDebounceInterval: (this.storageSettings.values.llmDebounceInterval || 30) * 1000,
39581
39581
  llmFallbackEnabled: this.storageSettings.values.llmFallbackEnabled ?? true,
39582
39582
  llmFallbackTimeout: (this.storageSettings.values.llmFallbackTimeout || 3) * 1000,
@@ -39618,9 +39618,9 @@ class SpatialAwarenessPlugin extends sdk_1.ScryptedDeviceBase {
39618
39618
  }
39619
39619
  }
39620
39620
  }
39621
- /** Parse LLM devices from settings - handles both array and single value formats */
39622
- parseLlmDevices() {
39623
- const value = this.storageSettings.values.llmDevices;
39621
+ /** Parse LLM providers from settings - handles both array and single value formats */
39622
+ parseLlmProviders() {
39623
+ const value = this.storageSettings.values.llmProviders;
39624
39624
  if (!value)
39625
39625
  return undefined;
39626
39626
  // Handle array format
@@ -39922,7 +39922,7 @@ class SpatialAwarenessPlugin extends sdk_1.ScryptedDeviceBase {
39922
39922
  key === 'llmDebounceInterval' ||
39923
39923
  key === 'llmFallbackEnabled' ||
39924
39924
  key === 'llmFallbackTimeout' ||
39925
- key === 'llmDevices' ||
39925
+ key === 'llmProviders' ||
39926
39926
  key === 'enableTransitTimeLearning' ||
39927
39927
  key === 'enableConnectionSuggestions' ||
39928
39928
  key === 'enableLandmarkLearning' ||