diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-01-15 20:53:57 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-20 21:12:57 +0000 |
| commit | 7f5908e77ae0e7fef4b7901341b8c2c4bbb74b28 (patch) | |
| tree | 2ccbc85132a170d046837de6bdd8be3317f94060 /dashboard/app/ai.go | |
| parent | 2494e18d5ced59fc7f0522749041e499d3082a9e (diff) | |
pkg/aflow: make LLM model per-agent rather than per-flow
Having LLM model per-agent is even more flexible than per-flow.
We can have some more complex tasks during patch generation with the most elaborate model,
but also some simpler ones with less elaborate models.
Diffstat (limited to 'dashboard/app/ai.go')
| -rw-r--r-- | dashboard/app/ai.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dashboard/app/ai.go b/dashboard/app/ai.go index 8d8767832..39f1479a3 100644 --- a/dashboard/app/ai.go +++ b/dashboard/app/ai.go @@ -48,7 +48,6 @@ type uiAIJob struct { Created time.Time Started time.Time Finished time.Time - LLMModel string CodeRevision string CodeRevisionLink string Error string @@ -68,6 +67,7 @@ type uiAITrajectorySpan struct { Nesting int64 Type string Name string + Model string Duration time.Duration Error string Args string @@ -198,7 +198,6 @@ func makeUIAIJob(job *aidb.Job) *uiAIJob { Created: job.Created, Started: nullTime(job.Started), Finished: nullTime(job.Finished), - LLMModel: job.LLMModel, CodeRevision: job.CodeRevision, CodeRevisionLink: vcs.LogLink(vcs.SyzkallerRepo, job.CodeRevision), Error: job.Error, @@ -220,6 +219,7 @@ func makeUIAITrajectory(trajetory []*aidb.TrajectorySpan) []*uiAITrajectorySpan Nesting: span.Nesting, Type: span.Type, Name: span.Name, + Model: span.Model, Duration: duration, Error: nullString(span.Error), Args: nullJSON(span.Args), @@ -238,7 +238,7 @@ func apiAIJobPoll(ctx context.Context, req *dashapi.AIJobPollReq) (any, error) { return nil, fmt.Errorf("invalid request") } for _, flow := range req.Workflows { - if flow.Type == "" || flow.Name == "" || flow.LLMModel == "" { + if flow.Type == "" || flow.Name == "" { return nil, fmt.Errorf("invalid request") } } |
