@superinterface/react 2.22.1 → 2.22.3

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.cjs CHANGED
@@ -2506,6 +2506,11 @@ var threadRunCreated = function(param) {
2506
2506
  });
2507
2507
  });
2508
2508
  };
2509
+ // src/hooks/messages/useCreateMessage/lib/mutationOptions/mutationFn/handleResponse/handlers/threadRunFailed.ts
2510
+ var threadRunFailed = function(param) {
2511
+ var value = param.value, queryClient = param.queryClient, messagesQueryKey = param.messagesQueryKey;
2512
+ throw new Error("Failed to send your message, try again. If you are the owner, check the logs.");
2513
+ };
2509
2514
  // src/hooks/messages/useCreateMessage/lib/mutationOptions/mutationFn/handleResponse/handlers/threadRunStepCreated.ts
2510
2515
  var threadRunStepCreated = function(param) {
2511
2516
  var value = param.value, queryClient = param.queryClient, messagesQueryKey = param.messagesQueryKey;
@@ -2739,6 +2744,7 @@ var handlers = {
2739
2744
  "thread.message.delta": threadMessageDelta,
2740
2745
  "thread.message.completed": threadMessageCompleted,
2741
2746
  "thread.run.created": threadRunCreated,
2747
+ "thread.run.failed": threadRunFailed,
2742
2748
  "thread.run.step.created": threadRunStepCreated,
2743
2749
  "thread.run.step.delta": threadRunStepDelta,
2744
2750
  "thread.run.step.completed": threadRunStepCompleted,
@@ -2820,7 +2826,7 @@ var mutationFn = function(param) {
2820
2826
  throw new Error(errorResponse.error);
2821
2827
  case 4:
2822
2828
  error = _state.sent();
2823
- throw new Error("There was a problem sending your message. Please try again.");
2829
+ throw new Error("Failed to send your message, try again. If you are the owner, check the logs.");
2824
2830
  case 5:
2825
2831
  if (response.body == null) {
2826
2832
  throw new Error("The response body is empty.");