Skip to content

Commit 955ad9c

Browse files
committed
PR feedback
Signed-off-by: Grant Linville <[email protected]>
1 parent 2a63506 commit 955ad9c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pkg/gptscript/gptscript.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ import (
3232

3333
var log = mvl.Package()
3434

35-
const defaultDatasetToolRepo = "github.com/gptscript-ai/datasets"
36-
3735
type 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
}

pkg/sdkserver/server.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ import (
2323
"github.com/rs/cors"
2424
)
2525

26+
const defaultDatasetToolRepo = "github.com/gptscript-ai/datasets"
27+
2628
type 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
}

0 commit comments

Comments
 (0)