From 041db3073db7b4c8107fcb176c08e03a8a8b2541 Mon Sep 17 00:00:00 2001 From: mariocandela Date: Thu, 28 Mar 2024 08:27:18 +0100 Subject: [PATCH] fix unit test --- plugins/openai-gpt_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/openai-gpt_test.go b/plugins/openai-gpt_test.go index d987edf..89352c8 100644 --- a/plugins/openai-gpt_test.go +++ b/plugins/openai-gpt_test.go @@ -18,7 +18,7 @@ func TestBuildPromptEmptyHistory(t *testing.T) { //Then assert.Equal(t, - "I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do no write explanations. Do not type commands unless I instruct you to do so.\n\nA:pwd\n\nQ:/home/user\n\nA:pwd\n\nQ:", + "You will act as an Ubuntu Linux terminal. The user will type commands, and you are to reply with what the terminal should show. Your responses must be contained within a single code block. Do not provide explanations or type commands unless explicitly instructed by the user. Remember previous commands and consider their effects on subsequent outputs.\n\nA:pwd\n\nQ:/home/user\n\nA:pwd\n\nQ:", prompt) } @@ -42,7 +42,7 @@ func TestBuildPromptWithHistory(t *testing.T) { //Then assert.Equal(t, - "I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do no write explanations. Do not type commands unless I instruct you to do so.\n\nA:pwd\n\nQ:/home/user\n\nA:cat hello.txt\n\nQ:world\n\nA:echo 1234\n\nQ:1234\n\nA:pwd\n\nQ:", + "You will act as an Ubuntu Linux terminal. The user will type commands, and you are to reply with what the terminal should show. Your responses must be contained within a single code block. Do not provide explanations or type commands unless explicitly instructed by the user. Remember previous commands and consider their effects on subsequent outputs.\n\nA:pwd\n\nQ:/home/user\n\nA:cat hello.txt\n\nQ:world\n\nA:echo 1234\n\nQ:1234\n\nA:pwd\n\nQ:", prompt) }