Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
reonardoleis committed Apr 5, 2024
1 parent e8887c3 commit 621522e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions internal/ai/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions internal/prompts/prompts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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".
Expand Down

0 comments on commit 621522e

Please sign in to comment.