Przeglądaj źródła

Merge pull request #1073 from alvinunreal/omos/fix-foreground-fallback-replay-text

fix(foreground-fallback): make replay notification self-explanatory to the model
Alvin 3 tygodni temu
rodzic
commit
8a0a111036
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/hooks/foreground-fallback/index.ts

+ 3 - 1
src/hooks/foreground-fallback/index.ts

@@ -778,7 +778,9 @@ export class ForegroundFallbackManager {
         body: {
           parts: [
             ...replayParts,
-            createInternalAgentTextPart('Foreground fallback replay.'),
+            createInternalAgentTextPart(
+              "<system-reminder>\nThe previous model request failed and is being retried with a fallback model. Continue processing the user's original request above. Do not respond to this reminder.\n</system-reminder>",
+            ),
           ],
           model: ref,
           ...(agentName ? { agent: agentName } : {}),