feat(kit): central tools for harnesses through the egress proxy and gateway task-tool RPCs
This commit is contained in:
41 files changed
+2187
-189
No files matched your search
@@ -120,7 +120,7 @@ func (d *Daemon) removeEndedKitVolumes(ctx context.Context, taskID int64, volume
|
||||
// through the egress proxy, which swaps in the org's bound key.
|
||||
type ModelEgress interface {
|
||||
Open(token, org string, providers map[string]config.Provider) (ModelSession, error)
|
||||
Close(token string)
|
||||
Close(ctx context.Context, token string)
|
||||
}
|
||||
|
||||
// TaskModels answers what a task's org resolves models against.
|
||||
@@ -174,5 +174,5 @@ func (d *Daemon) openModelEgress(ctx context.Context, task *workflow.Task, crede
|
||||
if err != nil {
|
||||
return ModelSession{}, nil, err
|
||||
}
|
||||
return session, func() { d.ModelEgress.Close(credential) }, nil
|
||||
return session, func() { d.ModelEgress.Close(ctx, credential) }, nil
|
||||
}
|
||||
Reference in new issue
Block a user