Skip to content

Commit 0d8d5d5

Browse files
committed
remove workspaceID
Signed-off-by: Grant Linville <[email protected]>
1 parent 0bb7bbf commit 0d8d5d5

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pkg/sdkserver/datasets.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,13 @@ import (
1212

1313
type datasetRequest struct {
1414
Input string `json:"input"`
15-
WorkspaceID string `json:"workspaceID"`
1615
DatasetTool string `json:"datasetTool"`
1716
Env []string `json:"env"`
1817
}
1918

2019
func (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

3128
func (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
}

0 commit comments

Comments
 (0)