@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.js CHANGED
@@ -2354,6 +2354,11 @@ var threadRunCreated = function(param) {
2354
2354
  });
2355
2355
  });
2356
2356
  };
2357
+ // src/hooks/messages/useCreateMessage/lib/mutationOptions/mutationFn/handleResponse/handlers/threadRunFailed.ts
2358
+ var threadRunFailed = function(param) {
2359
+ var value = param.value, queryClient = param.queryClient, messagesQueryKey = param.messagesQueryKey;
2360
+ throw new Error("Failed to send your message, try again. If you are the owner, check the logs.");
2361
+ };
2357
2362
  // src/hooks/messages/useCreateMessage/lib/mutationOptions/mutationFn/handleResponse/handlers/threadRunStepCreated.ts
2358
2363
  var threadRunStepCreated = function(param) {
2359
2364
  var value = param.value, queryClient = param.queryClient, messagesQueryKey = param.messagesQueryKey;
@@ -2587,6 +2592,7 @@ var handlers = {
2587
2592
  "thread.message.delta": threadMessageDelta,
2588
2593
  "thread.message.completed": threadMessageCompleted,
2589
2594
  "thread.run.created": threadRunCreated,
2595
+ "thread.run.failed": threadRunFailed,
2590
2596
  "thread.run.step.created": threadRunStepCreated,
2591
2597
  "thread.run.step.delta": threadRunStepDelta,
2592
2598
  "thread.run.step.completed": threadRunStepCompleted,
@@ -2668,7 +2674,7 @@ var mutationFn = function(param) {
2668
2674
  throw new Error(errorResponse.error);
2669
2675
  case 4:
2670
2676
  error = _state.sent();
2671
- throw new Error("There was a problem sending your message. Please try again.");
2677
+ throw new Error("Failed to send your message, try again. If you are the owner, check the logs.");
2672
2678
  case 5:
2673
2679
  if (response.body == null) {
2674
2680
  throw new Error("The response body is empty.");