Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

Add context token limit parameter to prompt creation

Dane Schneidercbaca87bda99
diff --git a/app/server/model/prompts/planning.go b/app/server/model/prompts/planning.go
index 6a2bfbc1..f693f49c 100644
--- a/app/server/model/prompts/planning.go
+++ b/app/server/model/prompts/planning.go
@@ -1,11 +1,12 @@
package prompts
type CreatePromptParams struct {
- AutoContext bool
- ExecMode bool
- IsUserDebug bool
- IsApplyDebug bool
- IsGitRepo bool
+ AutoContext bool
+ ExecMode bool
+ IsUserDebug bool
+ IsApplyDebug bool
+ IsGitRepo bool
+ ContextTokenLimit int
}
func GetPlanningPrompt(params CreatePromptParams) string {