File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -774,7 +774,7 @@ func TestConfirm(t *testing.T) {
774
774
func TestConfirmDeny (t * testing.T ) {
775
775
var eventContent string
776
776
tools := ToolDef {
777
- Instructions : "List the files in the current directory" ,
777
+ Instructions : "List the files in the current directory as '.'. If that doesn't work print the word FAIL. " ,
778
778
Tools : []string {"sys.exec" },
779
779
}
780
780
@@ -828,11 +828,11 @@ func TestConfirmDeny(t *testing.T) {
828
828
t .Errorf ("Error reading output: %v" , err )
829
829
}
830
830
831
- if ! strings .Contains (strings .ToLower (eventContent ), "authorization error " ) {
831
+ if ! strings .Contains (strings .ToLower (eventContent ), "fail " ) {
832
832
t .Errorf ("Unexpected event output: %s" , eventContent )
833
833
}
834
834
835
- if ! strings .Contains (strings .ToLower (out ), "authorization error " ) {
835
+ if ! strings .Contains (strings .ToLower (out ), "fail " ) {
836
836
t .Errorf ("Unexpected output: %s" , out )
837
837
}
838
838
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ func (g GlobalOptions) toEnv() []string {
18
18
args = append (args , "OPENAI_BASE_URL=" + g .OpenAIBaseURL )
19
19
}
20
20
if g .DefaultModel != "" {
21
- args = append (args , "GPTSCRIPT_DEFAULT_MODEL =" + g .DefaultModel )
21
+ args = append (args , "GPTSCRIPT_SDKSERVER_DEFAULT_MODEL =" + g .DefaultModel )
22
22
}
23
23
24
24
return args
You can’t perform that action at this time.
0 commit comments