var openaikey … var client … func ConnectGPT() { … } func submitToGPT(req openai.ChatCompletionRequest, prompt string) (response string) { … } const userRoleWrap … func submitConversation(srv common.ChatServer, temperature float32, additionalcontext, usermessage string, maxresponsewords int) (response string) { … } func submitObservation(srv common.ChatServer, temperature float32, additionalcontext string, prompt string) (response string) { … }