@jxsuite/protocol 2.3.0 → 2.3.1
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/package.json +1 -1
- package/src/types.ts +7 -0
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -758,6 +758,13 @@ export interface AiModelsResponse {
|
|
|
758
758
|
defaultModel?: string;
|
|
759
759
|
/** Set when the upstream provider was unreachable and defaults were returned. */
|
|
760
760
|
upstreamError?: number | string;
|
|
761
|
+
/**
|
|
762
|
+
* The upstream's own error message, when {@link upstreamError} is set. Populated from whatever
|
|
763
|
+
* envelope the upstream used — OpenAI's `{error}`, or an array-shaped one like Cloudflare's
|
|
764
|
+
* `{errors: [{message}]}` — so a caller can show the real reason (e.g. "No route for that URI")
|
|
765
|
+
* instead of a bare status code.
|
|
766
|
+
*/
|
|
767
|
+
upstreamMessage?: string;
|
|
761
768
|
/**
|
|
762
769
|
* Why the backend holds no working credentials, when it holds none.
|
|
763
770
|
*
|