@smartspace/chat-ui 1.14.4-pr.501.b2a0bb9 → 1.14.4-pr.571.e67e547
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.d.ts +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -596,7 +596,7 @@ declare function applyDeltaToMessage(target: Message, delta: {
|
|
|
596
596
|
/**
|
|
597
597
|
* User-facing text for message errors.
|
|
598
598
|
*
|
|
599
|
-
* The backend attaches a stable machine-readable category to
|
|
599
|
+
* The backend attaches a stable machine-readable category to failures
|
|
600
600
|
* (`errorCode`, e.g. "llm.rate_limit") alongside the numeric HTTP `code`.
|
|
601
601
|
* Prefer the category — it distinguishes causes the HTTP code can't (a 400
|
|
602
602
|
* can be a content filter, a context-window blowout, or a malformed
|
package/dist/index.js
CHANGED
|
@@ -19626,7 +19626,14 @@ var ERROR_CODE_TEXT = {
|
|
|
19626
19626
|
"llm.content_policy": "\u26A0\uFE0F **The response was blocked by a content filter**\n\nPlease rephrase your request.",
|
|
19627
19627
|
"llm.schema_validation": "\u26A0\uFE0F **The model returned an invalid response**\n\nPlease try again.",
|
|
19628
19628
|
"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.",
|
|
19629
|
-
"llm.unknown": GENERIC_ERROR_TEXT
|
|
19629
|
+
"llm.unknown": GENERIC_ERROR_TEXT,
|
|
19630
|
+
// Managed secrets. A secret's failure arrives as a 404 or 400, which the
|
|
19631
|
+
// status table below would read as a missing model or a generic error.
|
|
19632
|
+
"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.",
|
|
19633
|
+
"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.",
|
|
19634
|
+
"secret.user_mismatch": "\u26A0\uFE0F **A credential couldn't be loaded**\n\nAn administrator needs to check this flow's secrets.",
|
|
19635
|
+
"secret.run_required": "\u26A0\uFE0F **A credential couldn't be loaded**\n\nAn administrator needs to check this flow's secrets.",
|
|
19636
|
+
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."
|
|
19630
19637
|
};
|
|
19631
19638
|
var STATUS_CODE_TEXT = {
|
|
19632
19639
|
408: ERROR_CODE_TEXT["llm.timeout"],
|