Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville committed Oct 10, 2024
1 parent 2a63506 commit 955ad9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pkg/gptscript/gptscript.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import (

var log = mvl.Package()

const defaultDatasetToolRepo = "github.com/gptscript-ai/datasets"

type GPTScript struct {
Registry *llm.Registry
Runner *runner.Runner
Expand Down Expand Up @@ -84,9 +82,6 @@ func Complete(opts ...Options) Options {
if len(result.CredentialContexts) == 0 {
result.CredentialContexts = []string{credentials.DefaultCredentialContext}
}
if result.DatasetToolRepo == "" {
result.DatasetToolRepo = defaultDatasetToolRepo
}

return result
}
Expand Down
6 changes: 6 additions & 0 deletions pkg/sdkserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import (
"github.com/rs/cors"
)

const defaultDatasetToolRepo = "github.com/gptscript-ai/datasets"

type Options struct {
gptscript.Options

Expand Down Expand Up @@ -165,5 +167,9 @@ func complete(opts ...Options) Options {
result.ListenAddress = "127.0.0.1:0"
}

if result.DatasetToolRepo == "" {
result.DatasetToolRepo = defaultDatasetToolRepo
}

return result
}

0 comments on commit 955ad9c

Please sign in to comment.