@tangle-network/agent-app 0.63.22 → 0.63.23

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.
@@ -79,7 +79,7 @@ import {
79
79
  turnCarriesFiles,
80
80
  turnPromptText,
81
81
  withProducerStream
82
- } from "../chunk-B5YYKYMM.js";
82
+ } from "../chunk-3WU6HDEZ.js";
83
83
  import "../chunk-KADVQCAS.js";
84
84
  import {
85
85
  sniffMimeFromName
@@ -1042,7 +1042,7 @@ function createSandboxModelSource(options, log) {
1042
1042
  if (!parsed) return;
1043
1043
  modelState.effectiveBackend = parsed;
1044
1044
  const sentModel = servingModel();
1045
- if (substitutionNoticeQueued || !options.model || !sentModel || !parsed.servedModel || parsed.servedModel === sentModel) return;
1045
+ if (substitutionNoticeQueued || !options.model || !sentModel || !parsed.servedModel || sameModel(parsed.servedModel, sentModel)) return;
1046
1046
  substitutionNoticeQueued = true;
1047
1047
  pendingModelNotices.push({
1048
1048
  id: "model-substitution-1",
@@ -1051,6 +1051,10 @@ function createSandboxModelSource(options, log) {
1051
1051
  };
1052
1052
  return { pendingModelNotices, source, captureEffectiveBackend, servedModel, servingModel, failover, modelState, openAttempts: () => openAttempts };
1053
1053
  }
1054
+ function sameModel(a, b) {
1055
+ const bare = (id) => id.slice(id.lastIndexOf("/") + 1).trim().toLowerCase();
1056
+ return bare(a) === bare(b);
1057
+ }
1054
1058
 
1055
1059
  // src/chat-routes/sandbox-producer.ts
1056
1060
  function textDelta(tracker, key, part, rawDelta) {
@@ -3912,4 +3916,4 @@ export {
3912
3916
  createChatTurnRoutes,
3913
3917
  streamChatRouteAsSandboxEvents
3914
3918
  };
3915
- //# sourceMappingURL=chunk-B5YYKYMM.js.map
3919
+ //# sourceMappingURL=chunk-3WU6HDEZ.js.map