changes for rc1

This commit is contained in:
Bryce Lampe
2025-05-09 09:39:13 -07:00
parent f37fe4d2d7
commit 53d91af128
16 changed files with 102 additions and 95 deletions

View File

@@ -135,10 +135,10 @@ func (i *Index) Create(
) (infer.CreateResponse[IndexState], error) {
resp, err := i.Update(ctx,
infer.UpdateRequest[IndexArgs, IndexState]{
ID: req.Name,
State: IndexState{},
Inputs: req.Inputs,
Preview: req.Preview,
ID: req.Name,
State: IndexState{},
Inputs: req.Inputs,
DryRun: req.DryRun,
},
)
return infer.CreateResponse[IndexState]{ID: req.Name, Output: resp.Output}, err
@@ -160,7 +160,7 @@ func (i *Index) Update(
return infer.UpdateResponse[IndexState]{Output: state}, err
}
if req.Preview {
if req.DryRun {
return infer.UpdateResponse[IndexState]{Output: state}, nil
}