Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gptscript_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ func TestConfirm(t *testing.T) {
func TestConfirmDeny(t *testing.T) {
var eventContent string
tools := ToolDef{
Instructions: "List the files in the current directory",
Instructions: "List the files in the current directory as '.'. If that doesn't work print the word FAIL.",
Tools: []string{"sys.exec"},
}

Expand Down Expand Up @@ -828,11 +828,11 @@ func TestConfirmDeny(t *testing.T) {
t.Errorf("Error reading output: %v", err)
}

if !strings.Contains(strings.ToLower(eventContent), "authorization error") {
if !strings.Contains(strings.ToLower(eventContent), "fail") {
t.Errorf("Unexpected event output: %s", eventContent)
}

if !strings.Contains(strings.ToLower(out), "authorization error") {
if !strings.Contains(strings.ToLower(out), "fail") {
t.Errorf("Unexpected output: %s", out)
}

Expand Down
2 changes: 1 addition & 1 deletion opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (g GlobalOptions) toEnv() []string {
args = append(args, "OPENAI_BASE_URL="+g.OpenAIBaseURL)
}
if g.DefaultModel != "" {
args = append(args, "GPTSCRIPT_DEFAULT_MODEL="+g.DefaultModel)
args = append(args, "GPTSCRIPT_SDKSERVER_DEFAULT_MODEL="+g.DefaultModel)
}

return args
Expand Down