@smartspace/chat-ui 1.14.4-pr.626.0689f4e → 1.14.4-pr.627.b142f3e

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/index.js CHANGED
@@ -2604,7 +2604,8 @@ function kickOff(fn) {
2604
2604
  var isSupported = () => typeof window !== "undefined" && window.isSecureContext && !!navigator.mediaDevices?.getUserMedia;
2605
2605
  function classifyTokenFailure(error) {
2606
2606
  const code3 = error?.code;
2607
- if (code3 === "SP500") return "unavailable";
2607
+ if (code3 === "speech.identity_misconfigured" || code3 === "SP500")
2608
+ return "unavailable";
2608
2609
  if (error?.type === "NotFound") {
2609
2610
  return "unavailable";
2610
2611
  }
@@ -19611,12 +19612,18 @@ var ERROR_CODE_TEXT = {
19611
19612
  "llm.schema_validation": "\u26A0\uFE0F **The model returned an invalid response**\n\nPlease try again.",
19612
19613
  "llm.unsupported_modality": "\u26A0\uFE0F **This model can't read images**\n\nSwitch to a vision-capable model, or remove the attachment and describe it instead.",
19613
19614
  "llm.unknown": GENERIC_ERROR_TEXT,
19615
+ // The AI API's current names for the two above; older messages stored those.
19616
+ "llm.auth_failed": "\u26A0\uFE0F **The model connection isn't authorised**\n\nAn administrator needs to check the model configuration.",
19617
+ "llm.provider_error": GENERIC_ERROR_TEXT,
19618
+ "llm.unsupported_tools": "\u26A0\uFE0F **This model can't use tools**\n\nAn administrator needs to choose a model that supports tools for this step.",
19614
19619
  // Managed secrets. A secret's failure arrives as a 404 or 400, which the
19615
19620
  // status table below would read as a missing model or a generic error.
19616
19621
  "secret.user_value_not_set": "\u26A0\uFE0F **Your own key for this isn't set**\n\nThis step uses a credential each person sets for themselves, and none is set for you yet. Ask an administrator to add it.",
19617
19622
  "secret.run_has_no_user": "\u26A0\uFE0F **This step needs a signed-in user**\n\nIt uses a person's own credential, so it can't run when no one started the run.",
19618
19623
  "secret.user_mismatch": "\u26A0\uFE0F **A credential couldn't be loaded**\n\nAn administrator needs to check this flow's secrets.",
19619
19624
  "secret.run_required": "\u26A0\uFE0F **A credential couldn't be loaded**\n\nAn administrator needs to check this flow's secrets.",
19625
+ "secret.not_found": "\u26A0\uFE0F **A secret this flow uses doesn't exist**\n\nAn administrator needs to add it, or point the flow at another one.",
19626
+ // The API's name for secret.not_found before it was renamed; older messages stored it.
19620
19627
  MS404: "\u26A0\uFE0F **A secret this flow uses doesn't exist**\n\nAn administrator needs to add it, or point the flow at another one."
19621
19628
  };
19622
19629
  var STATUS_CODE_TEXT = {