Skip to content

Commit 3f647e7

Browse files
Merge pull request gptscript-ai#279 from ibuildthecloud/main
bug: fix simple "hello world" chat use case
2 parents 39f45c4 + aed873a commit 3f647e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/chat/chat.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func Start(ctx context.Context, prevState runner.ChatState, chatter Chatter, prg
5858
if startInput != "" {
5959
input = startInput
6060
startInput = ""
61-
} else if !(prevState == nil && prg.ToolSet[prg.EntryToolID].Arguments == nil) {
61+
} else if targetTool := prg.ToolSet[prg.EntryToolID]; !(prevState == nil && targetTool.Arguments == nil && targetTool.Instructions != "") {
6262
// The above logic will skip prompting if this is the first loop and the chat expects no args
6363
input, ok, err = prompter.Readline()
6464
if !ok || err != nil {

0 commit comments

Comments
 (0)