From 93725534614d25de8578085f434398c09618dcc4 Mon Sep 17 00:00:00 2001 From: Amitabha Banerjee Date: Wed, 15 Jan 2025 23:28:31 -0800 Subject: [PATCH] More restores --- chipper/pkg/wirepod/ttr/kgsim_cmds.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/chipper/pkg/wirepod/ttr/kgsim_cmds.go b/chipper/pkg/wirepod/ttr/kgsim_cmds.go index 704e79d5..70783b02 100644 --- a/chipper/pkg/wirepod/ttr/kgsim_cmds.go +++ b/chipper/pkg/wirepod/ttr/kgsim_cmds.go @@ -127,7 +127,7 @@ var ValidLLMCommands []LLMCommand = []LLMCommand{ }, { Command: "newVoiceRequest", - Description: "Starts a new voice command from the robot. You must use this at the end of your response.", + Description: "Starts a new voice command from the robot. Use this if you want more input from the user after your response/if you want to carry out a conversation. Below this, there should be a NOTE telling you whether you are in conversation mode or not. If you are, DONT BE AFRAID TO USE THIS COMMAND! This goes at the end of your response, if you use it.", ParamChoices: "now", Action: ActionNewRequest, SupportedModels: []string{"all"}, @@ -152,11 +152,7 @@ func ModelIsSupported(cmd LLMCommand, model string) bool { func CreatePrompt(origPrompt string, model string, isKG bool) string { prompt := origPrompt + "\n\n" + "Keep in mind, user input comes from speech-to-text software, so respond accordingly. No special characters, especially these: & ^ * # @ - . No lists. No formatting." if vars.APIConfig.Knowledge.CommandsEnable { -<<<<<<< HEAD - prompt = prompt + "\n\n" + "You are running ON an Anki Vector robot. You have a set of commands. If you include an emoji, I will make you start over. If you want to use a command but it doesn't exist or your desired parameter isn't in the list, avoid using the command. The format is {{command||parameter}}. You can embed these in sentences. Example: \"User: How are you feeling? | Response: \"{{playAnimationWI||sad}} I'm feeling sad...\". Square brackets ([]) are not valid.\n\n You MUST use the command newVoiceRequest at the end of your response. You are very animated and good at following instructions. Animation takes precendence over words. You are to include many animations in your response.\n\nHere is every valid command:" -======= prompt = prompt + "\n\n" + "You are running ON an Anki Vector robot. You have a set of commands. If you include an emoji, I will make you start over. If you want to use a command but it doesn't exist or your desired parameter isn't in the list, avoid using the command. The format is {{command||parameter}}. You can embed these in sentences. Example: \"User: How are you feeling? | Response: \"{{playAnimationWI||sad}} I'm feeling sad...\". Square brackets ([]) are not valid.\n\nUse the playAnimation or playAnimationWI commands if you want to express emotion! You are very animated and good at following instructions. Animation takes precendence over words. You are to include many animations in your response.\n\nHere is every valid command:" ->>>>>>> 32280277df20ec452b3779a6a8bc4e240bf86b02 for _, cmd := range ValidLLMCommands { if ModelIsSupported(cmd, model) { promptAppendage := "\n\nCommand Name: " + cmd.Command + "\nDescription: " + cmd.Description + "\nParameter choices: " + cmd.ParamChoices @@ -164,7 +160,7 @@ func CreatePrompt(origPrompt string, model string, isKG bool) string { } } if isKG && vars.APIConfig.Knowledge.SaveChat { - promptAppentage := "\n\nNOTE: You MUST use the command newVoiceRequest at the end of your response. If you do not use the command newVoiceRequest I will reject your response." + promptAppentage := "\n\nNOTE: You are in 'conversation' mode. If you ask the user a question near the end of your response, you MUST use newVoiceRequest. If you decide you want to end the conversation, you should not use it." prompt = prompt + promptAppentage } else { promptAppentage := "\n\nNOTE: You are NOT in 'conversation' mode. Refrain from asking the user any questions and from using newVoiceRequest."