Skip to content

Commit 5c022be

Browse files
committed
fix orchestrator model interface{}
1 parent f018a1f commit 5c022be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/plugins/codemode/codemode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type CodeModeResult struct {
4040
type CodeModeUTCP struct {
4141
client utcp.UtcpClientInterface
4242
model interface {
43-
Generate(ctx context.Context, _ string, prompt string) (any, error)
43+
Generate(ctx context.Context, prompt string) (any, error)
4444
}
4545
}
4646

src/plugins/codemode/orchestrator.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Respond ONLY in JSON:
165165
}
166166
`, string(toolsJSON), query, toolSpecs)
167167

168-
raw, err := cm.model.Generate(ctx, "", prompt)
168+
raw, err := cm.model.Generate(ctx, prompt)
169169
if err != nil {
170170
return "", false, err
171171
}
@@ -319,7 +319,7 @@ Respond ONLY in JSON:
319319
{ "needs": true } or { "needs": false }
320320
`, query, tools)
321321

322-
raw, err := cm.model.Generate(ctx, "", prompt)
322+
raw, err := cm.model.Generate(ctx, prompt)
323323
if err != nil {
324324
return false, err
325325
}
@@ -461,7 +461,7 @@ Rules:
461461
- If multiple tools apply, include all.
462462
`, query, tools)
463463

464-
raw, err := cm.model.Generate(ctx, "", prompt)
464+
raw, err := cm.model.Generate(ctx, prompt)
465465
if err != nil {
466466
return nil, err
467467
}

0 commit comments

Comments
 (0)