Skip to content

Commit

Permalink
Merge pull request #323 from C-Pro/feature/last-finetune
Browse files Browse the repository at this point in the history
update model, change towel prompt
  • Loading branch information
C-Pro authored Sep 23, 2024
2 parents 52aebde + f1101c0 commit 53f629c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit 53f629c

Please sign in to comment.