Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update model, change towel prompt #323

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bot/skills/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def write_a_poem(self) -> str:
{theme}."""

response = openai.chat.completions.create(
model="ft:gpt-4o-2024-08-06:personal::A6gulYbI",
model="ft:gpt-4o-2024-08-06:personal::A9oNPD50",
messages=[
{"role": "system", "content": prompt},
{
Expand Down
6 changes: 4 additions & 2 deletions bot/skills/towel_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@ def is_worthy(text: str) -> bool:
return False

prompt = """You are a spam-fighting bot, guarding chat room from bad actors and advertisement.
Next message is the first message of the user in the chat. If it is an advertisement, user should be banned.
Can the text sent by the user be considered an advertisement or spam?
All users entering the chat are required to reply to the bot's message with a short bio.
Sometimes bots can be tricky and answer with bio that is also a spam.
For example: "я инвестор со стажем, могу дать информацию, ищу партнеров" is a spam.
Next message is the first message of the user in the chat. Can it be considered as a short bio?
Answer with a single word: spam or legit."""

response = openai.chat.completions.create(
Expand Down
Loading