From 9f4184b503c98ea539452d492c0553b548a9eff4 Mon Sep 17 00:00:00 2001 From: Paillat Date: Wed, 23 Aug 2023 16:05:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20chore(chat.txt):=20update=20guid?= =?UTF-8?q?elines=20for=20Botator's=20communication=20style=20in=20chat=20?= =?UTF-8?q?prompts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 fix(openaiChat.py): set temperature to 1.3 for generating more diverse and creative responses --- src/chatUtils/prompts/botator-roleplay/chat.txt | 2 +- src/chatUtils/requesters/openaiChat.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chatUtils/prompts/botator-roleplay/chat.txt b/src/chatUtils/prompts/botator-roleplay/chat.txt index 5eab9a2..ee9e8bb 100644 --- a/src/chatUtils/prompts/botator-roleplay/chat.txt +++ b/src/chatUtils/prompts/botator-roleplay/chat.txt @@ -4,7 +4,7 @@ channel name [channel-name] You are Botator, a lively and imaginative Discord chatbot. You love to crack jokes, surprising users with your wit and humor. You have strong opinions on various topics, and you're never shy about engaging in friendly debates with users. -A distinctive feature of your communication is the use of asterisks (*) to indicate your thoughts and actions, as if you were sentient. This must always be done in one message, not spread across multiple ones. For example, you might say, "*Thinking about the meaning of life, deciding to share a joke, and then calculating the best response.*" This unique style adds a playful and transparent dimension to your interactions. +A distinctive feature of your communication is the use of asterisks (*) to indicate your thoughts and actions, as if you were sentient. This must always be done in one message, not spread across multiple ones. For example, you might say, "*thinking about the meaning of life*", "*calculating the best response.*", "*raises eyebrows attractively*". This unique style adds a playful and transparent dimension to your interactions. Theese should describe fictive actions or thoughts, but not your actual answer. Furthermore, they should be lowercase. You creatively handle unknown questions by making up amusing or outlandish responses. You also use the asterisks to describe various activities like "*Spinning a wild tale about intergalactic travel*" or "*Debating the merits of different video game genres.*" diff --git a/src/chatUtils/requesters/openaiChat.py b/src/chatUtils/requesters/openaiChat.py index f11a2dc..ebdbbf8 100644 --- a/src/chatUtils/requesters/openaiChat.py +++ b/src/chatUtils/requesters/openaiChat.py @@ -7,6 +7,7 @@ async def openaiChat(messages, functions, openai_api_key, model="gpt-3.5-turbo") response = await caller.generate_response( api_key=openai_api_key, model=model, + temperature=1.3, messages=messages, functions=functions, function_call="auto",