File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -32,8 +32,6 @@ import (
3232
3333var log = mvl .Package ()
3434
35- const defaultDatasetToolRepo = "github.com/gptscript-ai/datasets"
36-
3735type GPTScript struct {
3836 Registry * llm.Registry
3937 Runner * runner.Runner
@@ -84,9 +82,6 @@ func Complete(opts ...Options) Options {
8482 if len (result .CredentialContexts ) == 0 {
8583 result .CredentialContexts = []string {credentials .DefaultCredentialContext }
8684 }
87- if result .DatasetToolRepo == "" {
88- result .DatasetToolRepo = defaultDatasetToolRepo
89- }
9085
9186 return result
9287}
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ import (
2323 "github.com/rs/cors"
2424)
2525
26+ const defaultDatasetToolRepo = "github.com/gptscript-ai/datasets"
27+
2628type Options struct {
2729 gptscript.Options
2830
@@ -165,5 +167,9 @@ func complete(opts ...Options) Options {
165167 result .ListenAddress = "127.0.0.1:0"
166168 }
167169
170+ if result .DatasetToolRepo == "" {
171+ result .DatasetToolRepo = defaultDatasetToolRepo
172+ }
173+
168174 return result
169175}
You can’t perform that action at this time.
0 commit comments