Skip to content

Commit 418a00a

Browse files
bug: don't ignore default prompt in chat tools anymore
1 parent d0b8367 commit 418a00a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/engine/engine.go

-6
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
"github.com/gptscript-ai/gptscript/pkg/config"
1111
gcontext "github.com/gptscript-ai/gptscript/pkg/context"
1212
"github.com/gptscript-ai/gptscript/pkg/counter"
13-
"github.com/gptscript-ai/gptscript/pkg/system"
1413
"github.com/gptscript-ai/gptscript/pkg/types"
1514
"github.com/gptscript-ai/gptscript/pkg/version"
1615
)
@@ -282,11 +281,6 @@ func (e *Engine) Start(ctx Context, input string) (ret *Return, _ error) {
282281

283282
completion.Messages = addUpdateSystem(ctx, tool, completion.Messages)
284283

285-
if _, def := system.IsDefaultPrompt(input); tool.Chat && def {
286-
// Ignore "default prompts" from chat
287-
input = ""
288-
}
289-
290284
if tool.Chat && input == "{}" {
291285
input = ""
292286
}

0 commit comments

Comments
 (0)