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 (
12
12
13
13
type datasetRequest struct {
14
14
Input string `json:"input"`
15
- WorkspaceID string `json:"workspaceID"`
16
15
DatasetTool string `json:"datasetTool"`
17
16
Env []string `json:"env"`
18
17
}
19
18
20
19
func (r datasetRequest ) validate (requireInput bool ) error {
21
20
if requireInput && r .Input == "" {
22
21
return fmt .Errorf ("input is required" )
23
- } else if r .WorkspaceID == "" {
24
- return fmt .Errorf ("workspaceID is required" )
25
22
} else if len (r .Env ) == 0 {
26
23
return fmt .Errorf ("env is required" )
27
24
}
@@ -30,10 +27,9 @@ func (r datasetRequest) validate(requireInput bool) error {
30
27
31
28
func (r datasetRequest ) opts (o gptscript.Options ) gptscript.Options {
32
29
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 ,
37
33
}
38
34
return opts
39
35
}
You can’t perform that action at this time.
0 commit comments