Skip to content

Commit

Permalink
fixup! op_implement: stage2, stage3: when validating list of file to …
Browse files Browse the repository at this point in the history
…be processed at stage4 - try to add ocasionally missing files to message history to prevent possible corruption
  • Loading branch information
DarkCaster committed Jan 1, 2025
1 parent e029498 commit 1bd0d22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op_implement/stage2.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ func Stage2(projectRootDir string,
// realMessages message-history will be used for actual LLM prompt
realMessages := make([]llm.Message, len(messages), len(messages)+1)
copy(realMessages, messages)
messageWithTargetFiles = requestMessage
realMessages = append(realMessages, requestMessage)
// Query LLM to generate reasonings
onFailRetriesLeft := stage2Connector.GetOnFailureRetryLimit()
Expand Down Expand Up @@ -137,6 +136,7 @@ func Stage2(projectRootDir string,
targetFiles,
cfg.StringArray(config.K_FilenameTags),
logger)
messageWithTargetFiles = finalRequestMessage
messages = append(messages, finalRequestMessage)
logger.Debugln("Planning request message created")
// Save reasonings to message-history
Expand Down

0 comments on commit 1bd0d22

Please sign in to comment.