Support configuring effort alongside model
This commit is contained in:
@@ -338,7 +338,7 @@ func (m *Manager) beginStage(ctx context.Context, task api.Task, project api.Pro
|
||||
s := workflow.Get(frozen.Definition, stage)
|
||||
message := stageMessage(frozen, stage, parents, project.DefaultBranch)
|
||||
if s.Agents == nil {
|
||||
return m.create(ctx, task, creator, "", message, s.Model, "byre", "", "", nil)
|
||||
return m.create(ctx, task, creator, "", message, s.Model, s.Effort, "byre", "", "", nil)
|
||||
}
|
||||
err = m.startTeam(ctx, task, creator, message, *s.Agents, "byre")
|
||||
if err != nil {
|
||||
@@ -777,6 +777,7 @@ const workflowSchemaDefs = `"$defs": {
|
||||
"properties": {
|
||||
"stage": {"type": "string"},
|
||||
"model": {"type": "string"},
|
||||
"effort": {"type": "string", "description": "low, medium, high, xhigh or max (Codex models take low to xhigh); absent means the vendor's default."},
|
||||
"prompt": {"type": "string"},
|
||||
"agents": {"type": "array", "items": {"$ref": "#/$defs/agent"}},
|
||||
"order": {"type": "array", "items": {"$ref": "#/$defs/step"}},
|
||||
@@ -791,6 +792,7 @@ const workflowSchemaDefs = `"$defs": {
|
||||
"properties": {
|
||||
"name": {"type": "string"},
|
||||
"model": {"type": "string"},
|
||||
"effort": {"type": "string"},
|
||||
"prompt": {"type": "string"}
|
||||
},
|
||||
"required": ["name", "model", "prompt"],
|
||||
|
||||
Reference in New Issue
Block a user