File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ import (
32
32
33
33
var log = mvl .Package ()
34
34
35
- const defaultDatasetToolRepo = "github.com/gptscript-ai/datasets"
36
-
37
35
type GPTScript struct {
38
36
Registry * llm.Registry
39
37
Runner * runner.Runner
@@ -84,9 +82,6 @@ func Complete(opts ...Options) Options {
84
82
if len (result .CredentialContexts ) == 0 {
85
83
result .CredentialContexts = []string {credentials .DefaultCredentialContext }
86
84
}
87
- if result .DatasetToolRepo == "" {
88
- result .DatasetToolRepo = defaultDatasetToolRepo
89
- }
90
85
91
86
return result
92
87
}
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import (
23
23
"github.com/rs/cors"
24
24
)
25
25
26
+ const defaultDatasetToolRepo = "github.com/gptscript-ai/datasets"
27
+
26
28
type Options struct {
27
29
gptscript.Options
28
30
@@ -165,5 +167,9 @@ func complete(opts ...Options) Options {
165
167
result .ListenAddress = "127.0.0.1:0"
166
168
}
167
169
170
+ if result .DatasetToolRepo == "" {
171
+ result .DatasetToolRepo = defaultDatasetToolRepo
172
+ }
173
+
168
174
return result
169
175
}
You can’t perform that action at this time.
0 commit comments