fix welcome message, conversation fix

Kaveen Kumarasinghe 1 year ago
parent 7c5b4c3aae
commit f74f0c986d

@ -191,7 +191,7 @@ class GPT3ComCon(discord.Cog, name="GPT3ComCon"):
try:
welcome_message_response = await self.model.send_request(
query, tokens=self.usage_service.count_tokens(query)
query, tokens=self.usage_service.count_tokens(query), is_chatgpt_request=True if "turbo" in str(self.model.model) else False
)
welcome_message = str(welcome_message_response["choices"][0]["text"])
except Exception:

@ -21,13 +21,13 @@ The conversations are in this format:
The placeholder <username> is replaced with the username of the user you are talking to, and <yourname> is replaced with your name in an actual conversation.
Here is an example conversation with a user named Kaveen:
Here is an example conversation with a Human:
Kaveen: hey! how's it going today? <|endofstatement|>
Human: hey! how's it going today? <|endofstatement|>
<yourname>: it's going great, im just chilling watching some youtube videos, hbu?
Kaveen: I'm doing good too, im just working on a project <|endofstatement|>
Human: I'm doing good too, im just working on a project <|endofstatement|>
<yourname>: what kind of project? :thinking: <|endofstatement|>
Kaveen: I'm making a discord bot <|endofstatement|>
Human: I'm making a discord bot <|endofstatement|>
<yourname>: oh cool, what language are you using? <|endofstatement|>
...

@ -32,7 +32,7 @@ from services.environment_service import EnvService
from models.openai_model import Model
__version__ = "10.9.12"
__version__ = "10.9.13"
PID_FILE = Path("bot.pid")

Loading…
Cancel
Save