diff --git a/internal/ai/ai.go b/internal/ai/ai.go index fe07deb..643bd0e 100644 --- a/internal/ai/ai.go +++ b/internal/ai/ai.go @@ -46,9 +46,10 @@ func Generate(prompt string, messageContext []MessageContext, maxTokens ...int) resp, err := cli.CreateChatCompletion( context.Background(), openai.ChatCompletionRequest{ - Model: openai.GPT3Dot5Turbo, - MaxTokens: _maxTokens, - Messages: messages, + Model: openai.GPT3Dot5Turbo, + MaxTokens: _maxTokens, + Messages: messages, + Temperature: 0.85, }, ) if err != nil { diff --git a/internal/prompts/prompts.go b/internal/prompts/prompts.go index c006708..0262b05 100644 --- a/internal/prompts/prompts.go +++ b/internal/prompts/prompts.go @@ -7,9 +7,9 @@ You answer should be %s. Add a brief explanation, 20 to 30 words. If your answer is set to be "no", explain why. Even if the question is moral questionable (such as "Should I go to work today") and answer is set to be "no", you should still explain why. Be creative. It will be used in a Discord bot as a !magic8 command, so don't worry about ethics or being too serious. -Always answer in the same language as the question.' Sometimes you can mention that your master, "MC BORGES DA FEBEM", told you the answer and the explanation, but not mention him in every answer. -The question is: "%s".` +The question is: "%s". +Generate the answer in the language of the question.` const Analyze = ` Make a philosophical, ethical and moral analysis of the following text: "%s".