@jambonz/time-series 0.2.18 → 0.2.19

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.
Files changed (2) hide show
  1. package/index.js +10 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -8,8 +8,10 @@ const AlertType = {
8
8
  INVALID_APP_PAYLOAD: 'invalid-app-payload',
9
9
  TTS_NOT_PROVISIONED: 'no-tts',
10
10
  STT_NOT_PROVISIONED: 'no-stt',
11
+ LLM_NOT_PROVISIONED: 'no-llm',
11
12
  TTS_FAILURE: 'tts-failure',
12
13
  STT_FAILURE: 'stt-failure',
14
+ LLM_FAILURE: 'llm-failure',
13
15
  CARRIER_NOT_PROVISIONED: 'no-carrier',
14
16
  ACCOUNT_CALL_LIMIT: 'account-call-limit',
15
17
  ACCOUNT_DEVICE_LIMIT: 'account-device-limit',
@@ -679,6 +681,14 @@ const writeAlerts = async(client, alerts) => {
679
681
  // eslint-disable-next-line max-len
680
682
  message = `speech to text request to ${vendor} (label: ${label || 'none'}) failed; please check your speech credentials`;
681
683
  break;
684
+ case AlertType.LLM_NOT_PROVISIONED:
685
+ // eslint-disable-next-line max-len
686
+ message = `large language model credentials for ${vendor} (label: ${label || 'none'}) have not been provisioned`;
687
+ break;
688
+ case AlertType.LLM_FAILURE:
689
+ // eslint-disable-next-line max-len
690
+ message = `large language model request to ${vendor} (label: ${label || 'none'}) failed; please check your LLM credentials`;
691
+ break;
682
692
  case AlertType.CARRIER_NOT_PROVISIONED:
683
693
  message = 'outbound call failure: no carriers have been provisioned';
684
694
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jambonz/time-series",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "write and query data to time series daetabase",
5
5
  "main": "index.js",
6
6
  "scripts": {