Selaa lähdekoodia

chore: generate

opencode-agent[bot] 1 kuukausi sitten
vanhempi
sitoutus
0b7ec51d0a
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      packages/opencode/src/session/prompt.ts

+ 4 - 1
packages/opencode/src/session/prompt.ts

@@ -1322,7 +1322,10 @@ export const layer = Layer.effect(
               sessionID,
               sessionID,
               parentSessionID: session.parentID,
               parentSessionID: session.parentID,
               system,
               system,
-              messages: [...modelMsgs, ...(isLastStep ? [{ role: "assistant" as const, content: MAX_STEPS_PROMPT }] : [])],
+              messages: [
+                ...modelMsgs,
+                ...(isLastStep ? [{ role: "assistant" as const, content: MAX_STEPS_PROMPT }] : []),
+              ],
               tools,
               tools,
               model,
               model,
               toolChoice: format.type === "json_schema" ? "required" : undefined,
               toolChoice: format.type === "json_schema" ? "required" : undefined,