File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,13 @@ import (
1212
1313type datasetRequest struct {
1414 Input string `json:"input"`
15- WorkspaceID string `json:"workspaceID"`
1615 DatasetTool string `json:"datasetTool"`
1716 Env []string `json:"env"`
1817}
1918
2019func (r datasetRequest ) validate (requireInput bool ) error {
2120 if requireInput && r .Input == "" {
2221 return fmt .Errorf ("input is required" )
23- } else if r .WorkspaceID == "" {
24- return fmt .Errorf ("workspaceID is required" )
2522 } else if len (r .Env ) == 0 {
2623 return fmt .Errorf ("env is required" )
2724 }
@@ -30,10 +27,9 @@ func (r datasetRequest) validate(requireInput bool) error {
3027
3128func (r datasetRequest ) opts (o gptscript.Options ) gptscript.Options {
3229 opts := gptscript.Options {
33- Cache : o .Cache ,
34- Monitor : o .Monitor ,
35- Runner : o .Runner ,
36- Workspace : r .WorkspaceID ,
30+ Cache : o .Cache ,
31+ Monitor : o .Monitor ,
32+ Runner : o .Runner ,
3733 }
3834 return opts
3935}
You can’t perform that action at this time.
0 commit comments