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

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
@@ -19612,10 +19612,13 @@ var ERROR_CODE_TEXT = {
19612
19612
  "llm.schema_validation": "\u26A0\uFE0F **The model returned an invalid response**\n\nPlease try again.",
19613
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.",
19614
19614
  "llm.unknown": GENERIC_ERROR_TEXT,
19615
- // The AI API's current names for the two above; older messages stored those.
19615
+ // The AI API's current name for llm.auth; older messages stored that one.
19616
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
19617
  "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.",
19618
+ "embeddings.model_not_found": "\u26A0\uFE0F **The model or deployment could not be found**\n\nAn administrator needs to check the model configuration.",
19619
+ // The app API's names for losing the AI API before or part-way through a reply.
19620
+ "ai_api.unavailable": "\u26A0\uFE0F **The connection to the model was interrupted**\n\nThis is usually temporary. Please try again.",
19621
+ "ai_api.stream_broken": "\u26A0\uFE0F **The connection to the model was interrupted**\n\nThis is usually temporary. Please try again.",
19619
19622
  // Managed secrets. A secret's failure arrives as a 404 or 400, which the
19620
19623
  // status table below would read as a missing model or a generic error.
19621
19624
  "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.",
@@ -19644,6 +19647,9 @@ var getMessageErrorText = (error) => {
19644
19647
  if (error.errorCode && ERROR_CODE_TEXT[error.errorCode]) {
19645
19648
  return ERROR_CODE_TEXT[error.errorCode];
19646
19649
  }
19650
+ if (error.errorCode && !error.errorCode.startsWith("llm.")) {
19651
+ return GENERIC_ERROR_TEXT;
19652
+ }
19647
19653
  return STATUS_CODE_TEXT[error.code] ?? GENERIC_ERROR_TEXT;
19648
19654
  };
19649
19655
  function extractProviderErrorDetail(raw2) {